How to access the instance of the field inside of the Repeating Group with a Script Rule?

Question

How to access the instance of the field inside of the Repeating Group with a Script Rule in ABBYY FlexiCapture 12?

Answer

As the field inside the Repeating Group is the collection of the fields, you need to specify its instance in a form of Field("<Field Name>").Items[i] (where i is a number of an instance) to access it.

As an example, the following Script Rule assigns the text of the second instance of the "Designation" field (which is a field inside the Repeating Group) to the "Field" field.

mceclip0.png

//C#
Context.Field("Field").Text = Context.Field("Designation").Items[1].Text;

Was this article helpful?

1 out of 1 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.

Recently viewed