Monday, June 29, 2009

How to deal with infopath object

Good article to share. Highlight

string xpath = "/my:myFields/my:field1";
XPathNavigator field1 = MainDataSource.CreateNavigator().SelectSingleNode(xpath, NamespaceManager);
string oldValue = field1.Value; // Read
field1.SetValue(“New Value”); // Write

No comments:

Post a Comment