This has probably been answered a billion times before but I have not been able to jump this hurdle. :(
Im in need of some serious help. I have a infopath form with a repeating table. Now I want to be able to read all the values in each row for the repeating table.
At the moment Im using the following code:
[CODE]
Dim field1 As String
Dim domNav As XpathNavigator = CreateNavigator()
Dim rows As XpathNodeIterator = domNav.Select( _
"/dfs:myFields/dfs:dataFields/d:tblSite/d:tblCctv/d:tblDVR", NamespaceManager)
While rows.MoveNext()
field1 = rows.Current.SelectSingleNode("/dfs:myFields/dfs:dataFields/d:tblSite/d:tblCctv/d:tblDVR/@DVRType", NamespaceManager).toString
End while
[/CODE]
I know it is going through the loop correctly as I tested it with a variable to count how many times it goes through, but when I test it tried to read the first field in each row its always the first rows first field which prints.