Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. InfoPath disappearing data

InfoPath disappearing data

Scheduled Pinned Locked Moved SharePoint
helpdebugginglounge
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 8605880
    wrote on last edited by
    #1

    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. Scenario 1: 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 Scenario 2: 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
    ("/my:myTipLead/fxintakerequest:IntakeRequest/fusionx:AnalystNotes/fusionx:AnalystNote/fusionx:NoteText"
    , NamespaceManager);
    while (rows.MoveNext())
    {
    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!!

    N 1 Reply Last reply
    0
    • U User 8605880

      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. Scenario 1: 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 Scenario 2: 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
      ("/my:myTipLead/fxintakerequest:IntakeRequest/fusionx:AnalystNotes/fusionx:AnalystNote/fusionx:NoteText"
      , NamespaceManager);
      while (rows.MoveNext())
      {
      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!!

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      This is not a SharePoint related question.


      Failure is not an option; it's the default selection.

      U 1 Reply Last reply
      0
      • N Not Active

        This is not a SharePoint related question.


        Failure is not an option; it's the default selection.

        U Offline
        U Offline
        User 8605880
        wrote on last edited by
        #3

        I'm sorry. We are using SharePoint to host our forms and I saw other InfoPath related stuff in the SharePoint forum. Where should I ask this question?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups