|Hi, I am new to InfoPath, and I am having an issue with a web-based form. I have a Rich Text Box that is in a repeating section that is
bound to an XHTML field. This is not in the main/default view, and the user can submit the form from the main/default view and from the
sub-view with this control in it. When the user adds more than one of these Rich Text Boxes to the form, the data that has been entered into
the field isn't always saved. I have, however, never seen the first time not be saved.
user enters text into the Rich Text Box. Then clicks the submit button. The text in the first Rich Text Box keeps the user entered text as
expected. The user then adds another field, enters text, and clicks submit. The form then saves, however, the newly entered text in the
Rich Text Box sometimes changes to "", and sometimes the text in the Rich Text Box stays as the newly entered text as expected
After clicking submit and the data stays as expected, the user then wants to change the value that is in the Rich Text Box. The user enters
new data in the Rich Text Box and presses submit. The form then saves, however, sometimes the text in the Rich Text Box changes back to
the data that was there previous to the user's changes, and sometimes the text stays as the newly entered text as expected.
This seems to be a random error. It sometimes happens on the second entered Rich Text Box and sometimes doesn't happen until the
4th or 5th. This error doesn't happen when debugging the form in infopath. The code I am using to debug this issue is on the submit
button clicked event.
XPathNavigator domNav = MainDataSource.CreateNavigator();
XPathNodeIterator rows = domNav.Select
EventLog.WriteEntry(ERROR_SOURCE, "node value = " + rows.Current.Value);
The event log show all of the times it acted as expected. When it fails to save the text entered, the event log has all of the previously entered Rich Text Box data and the newly entered Rich Text Box entry says "not value = ". I'm assuming that the text is never getting into the field. Any help would be much appreciated. Thank you!!
modified 13-Feb-12 15:45pm.
General News Suggestion Question Bug Answer Joke Praise Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.