How to access RepeatingGroup field via scripting?

Question:

If I have a repeating group and would like to access its field via scripting, how would I do it ?

 

Answer:

To access Repeating Group via scripting, please see the snippet below:

for(int i = 0; i < Document.Field("InvoiceWithRepeatGroup\\TableHeader").Items.Count; i++)
{
  string s = Document.Field("InvoiceWithRepeatGroup\\TableHeader").Items[i].Field("Designation").Text;
}

 

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.