troubleshooting Question

InfoPath - Retrieving data from repeating table

Avatar of WNottsC
WNottsCFlag for Afghanistan asked on
Microsoft Office
3 Comments1 Solution267 ViewsLast Modified:
I have a repeating table with 2 columns that looks like this:

Software Required               Reason / Additional Comments

Windows XP                        Rebuikld PC
Office 2003                          Rebuild PC
Visual Studio 2005               Rebuild PC

I need to retrieve the values of all rows using code but if I retrieve the fields value, only the first row value is returned e.g
Dim softwareRequired as string = thisXDocument.DOM.selectSingleNode("/dfs:myFields/my:SoftwareRequired").text
will only return return the value "Windows XP".

How do I access the value of the next item in the collection (i.e "Offcie 2003")?
e.g. if the repeating group is called Software then I need something like Software.MoveNext or
Dim softwareRequired as string = thisXDocument.DOM.selectSingleNode("/dfs:myFields/my:SoftwareRequired(2)").text
Will probably need a way to find out how many records are in the repeating table too.

Any ideas?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros