Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / January 2007

Tip: Looking for answers? Try searching our database.

Loop though repeating group in InfoPath 2007

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
digitor - 11 Jan 2007 07:14 GMT
I have a repeating group which I wish to loop through to check against.
How can I (Programmatically) loop through all the nodes in a repeating
group and get access to the collection it holds?
Be good if you could post a code example on how to do this.  (using
InfoPath 2007 with the new object model)

Greg
Alexander Ekzarov - 12 Jan 2007 08:26 GMT
Did you try XPath ??
For example, if you have some group1 wich have repeating field CustomerName,
and you want to choose CustomerName wich equals "Mark Jhon" you whould write
something like this in:
/group1[@CustomerName='Mark Jhon']/CustomerName

in formula of some field or in C# code...

I hope it will help...

> I have a repeating group which I wish to loop through to check against.
> How can I (Programmatically) loop through all the nodes in a repeating
[quoted text clipped - 3 lines]
>
> Greg
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.