programming4us
programming4us
WEBSITE

InfoPath with SharePoint 2010 : Apply Rich Text to the Entry

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
Scenario/Problem:Following the procedures in the previous sections produces the change HTML but does not apply rich text formatting to the entry. You therefore need to apply rich text formatting to the entry.

Solution:Add code to append the Changes value.

The last section of code in the method creates the new entry, but the Changes field contains only text. For the rich text to appear, the value needs to be appended to the Changes field. Add the code in Listing 1 to the bottom of your method.

Listing 1. Apply Rich Text
//Apply Rich Text to new Element
XPathNavigator repTable = MainDataSource.CreateNavigator();
XPathNodeIterator repTableRows = repTable.Select("/MY:MYFIELDS/
MY:GROUPTRACKCHANGES/MY:GROUPCHANGES", NamespaceManager);
if (repTableRows.Count > 0)
{
int i = repTableRows.Count;
repTable.SelectSingleNode
("/MY:MYFIELDS/MY:GROUPTRACKCHANGES/MY:GROUPCHANGES[" + i +
"]/MY:CHANGES", NamespaceManager).SetValue("");
repTable.SelectSingleNode
("/MY:MYFIELDS/MY:GROUPTRACKCHANGES/MY:GROUPCHANGES[" + i +
"]/MY:CHANGES", NamespaceManager).AppendChild(newValue);
}

The code now produces the desired rich text within the rich text boxes, as shown in Figure 1.

Figure 1. Appending the value produces the desired rich text.
Other  
  •  InfoPath with SharePoint 2010 : Add Changed Event Code for Tracking Changes
  •  InfoPath with SharePoint 2010 : Set Up the Form for Tracking Changes
  •  Sharepoint 2013 : Farm Management - Rename a Server on the Farm, Display the Configured Managed Paths
  •  Sharepoint 2013 : Farm Management - Retrieve the System Accounts, Retrieve Managed Accounts
  •  Sharepoint 2013 : Farm Management - Refresh Installed Products,Change the Port of Central Admin,Change the Farm Passphrase
  •  Sharepoint 2013 : Farm Management - Review Farm Configuration Values,Set the Farm Configuration Values
  •  Web User’s Best Buys March 2014
  •  Sharepoint 2013 : Using SkyDrive Pro - Discontinuing sync between SkyDrive Pro and your local device
  •  Sharepoint 2013 : Using SkyDrive Pro - Locating followed documents by using SkyDrive Pro, Synchronizing SkyDrive Pro to your local computer
  •  Sharepoint 2013 : Using SkyDrive Pro - Following SkyDrive Pro documents, Locating followed documents by using the newsfeed
  •  
    Top 10
    Free Mobile And Desktop Apps For Accessing Restricted Websites
    MASERATI QUATTROPORTE; DIESEL : Lure of Italian limos
    TOYOTA CAMRY 2; 2.5 : Camry now more comely
    KIA SORENTO 2.2CRDi : Fuel-sipping slugger
    How To Setup, Password Protect & Encrypt Wireless Internet Connection
    Emulate And Run iPad Apps On Windows, Mac OS X & Linux With iPadian
    Backup & Restore Game Progress From Any Game With SaveGameProgress
    Generate A Facebook Timeline Cover Using A Free App
    New App for Women ‘Remix’ Offers Fashion Advice & Style Tips
    SG50 Ferrari F12berlinetta : Prancing Horse for Lion City's 50th
    - Messages forwarded by Outlook rule go nowhere
    - Create and Deploy Windows 7 Image
    - How do I check to see if my exchange 2003 is an open relay? (not using a open relay tester tool online, but on the console)
    - Creating and using an unencrypted cookie in ASP.NET
    - Directories
    - Poor Performance on Sharepoint 2010 Server
    - SBS 2008 ~ The e-mail alias already exists...
    - Public to Private IP - DNS Changes
    - Send Email from Winform application
    - How to create a .mdb file from ms sql server database.......
    programming4us programming4us
    programming4us
     
     
    programming4us