New values added to RichText are not updated - InfoPath Dev
in

InfoPath Dev

New values added to RichText are not updated

Last post 10-20-2009 07:54 AM by deepak483. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 10-19-2009 12:18 PM

    New values added to RichText are not updated

     Hi,

    I have created a couple of forms and used the method described in this site. I have written a console application which I am copying a sample .xml file and modifying it to create a new form instance and changing the values in that xml document using some of the methods at System.Xml. I am able to create the new form instance and update its value, also I need to allow the user to update the data from the infopath from too, later once the form instance is created.

    But I am not able to update any fields when I open the programmatically created instance, except for the richtext which is not updating the newly added text. But when I download and modify (With correct tags <div></div>) the values are getting displayed.

     Also I have taken care of the that "http://www.w3.org/1999/xhtml" is added to each tags which I am adding programmatically.

    Thanks in advance
    Deepak

    ---
    Deepak N Naidu
    "Giant Leap Starts With One Small Step"
    http://deepakn.info/blog
  • 10-19-2009 02:49 PM In reply to

    Re: New values added to RichText are not updated

    I think, The filename when I am copying the sample.xml which is different from the file name I calculate in the data connections file could be the wrong step.

    ---
    Deepak N Naidu
    "Giant Leap Starts With One Small Step"
    http://deepakn.info/blog
  • 10-19-2009 05:38 PM In reply to

    Re: New values added to RichText are not updated

     I'm not really sure what issue you're describing.  At first it sounds like you can't modify any of the fields except the rich text when you open the form, and then it sounds like there's a problem with the rich text field.  Which is it.

    Also, could you post an example of one of your programmatically-generated XML files, and the original sample.XML?

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 10-19-2009 07:44 PM In reply to

    Re: New values added to RichText are not updated

    Hi Jimmy,

    I will try to explain the scenario and post the xml code below, We need to create a form in library programmtically, from a webpart page. Only the initial few values will be entered, but the form will be opened later in the browser and update. 

    I created some XMLDocument and used to update the newly copied file with the initial values (it is in the Program.txt, this refers the IAPInfoPathNewInstance.cs to update the xml)

     I am able to add the values for the first time, but when the form is opened again the new updates are not reflected. I think some thing is wrong in the Form_Submit code.

     


     

     
    Thanks in advance for your suggestion

    Deepak

    ---
    Deepak N Naidu
    "Giant Leap Starts With One Small Step"
    http://deepakn.info/blog
  • 10-20-2009 07:54 AM In reply to

    Re: New values added to RichText are not updated

    Hi, I figured out were was the error, It was in the FormEvents_Submit rather that updating the newly copied file, the sample.xml file was getting updated. Fixed it and now the copied forms updates are working.

     

     

    Thanks Deepak

    ---
    Deepak N Naidu
    "Giant Leap Starts With One Small Step"
    http://deepakn.info/blog
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.