newbie textboxes - InfoPath Dev
in

InfoPath Dev

newbie textboxes

Last post 12-29-2008 03:09 PM by tbonesafari. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 12-28-2008 12:12 PM

    newbie textboxes

    Hi, I'm just starting with Infopath and want to pick up a variable in a text box on the form and want to be able to store the value so that I can then sotre it in a database. I can't seem to find anywhere how to reference a field and select the value in it, then assign to a variable in c#...please can somebody help!?! Thanks T-BONE
  • 12-28-2008 08:29 PM In reply to

    In InfoPath 2007, it would be something like this:

    XPathNavigator node = MainDataSource.CreateNavigator().SelectSingleNode("/my:myFields/my:field1", NamespaceManager);
    string nodeValue = node.Value;

    substituting the "/my:myFields/my:field1" part with the actual XPath of the field you are accessing.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 12-29-2008 03:09 PM In reply to

    Thank you!
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.