Failed to get text from form. - InfoPath Dev
in

InfoPath Dev

Failed to get text from form.

Last post 01-17-2013 02:37 PM by darena1009. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 01-17-2013 02:37 PM

    Failed to get text from form.

    I have a form that I have published to SharePoint. The form contains a text box and a button.  First the form is prefilled. Then the user can change the text. When the button is clicked, I want to perform some action. My problem is that in the VSTA c# code, I perform the usual to get the text, i.e.:

    XPathNavigator root = this.MainDataSource.CreateNavigator();

    XPathNavigator field = root.SelectSingleNode("/my:Form/my:TextBox", this.NamespaceManager);

    string text = field.Value;

    The problem is such that "text" is always the original value even if the user has changed. This works great in the filler, but not in browser mode. It seems that the browser is not posting back to the server and the updated text remains in the browser. Of course the text box is bound to the field I am trying to obtain. The  data is not being submitted to a database or anything. I just want the value in the c#code.

    Any help or direction is appreciated.

    Filed under:
Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.