If somebody like the post and its helpful in your work then, add comments.

Sunday, November 30, 2008

How to loop through items in a repeating table in InfoPath 2007

XPathNavigator domNav = MainDataSource.CreateNavigator();
XPathNodeIterator rows = domNav.Select(
"/my:myFields/my:table/my:row", NamespaceManager);

while (rows.MoveNext())
{
string field1 = rows.Current.SelectSingleNode(
"my:field1", NamespaceManager).Value;
string field2 = rows.Current.SelectSingleNode(
"my:field2", NamespaceManager).Value;
string field3 = rows.Current.SelectSingleNode(
"my:field3", NamespaceManager).Value;
}

1 comment: