Previous Topic: Using Varying Length FieldsNext Topic: Dynamically Link Options


Using Repeating Groups

If the export view of the External Action Block contains a repeating group view, indicate the number of occurrences that are returned by setting the maximum field. This is a numeric field that immediately precedes the repeating group, and which has a name that ends with the letters MA (for MAximum). The field is also redefined as alphabetic using a name that ends with the letters MX. If you use multiple repeating groups, you have multiple maximum fields, one for each group.

You are responsible to track how many occurrences are returned and placing that count in the maximum field. Failure to do so results in the calling procedure or action block behaving as if the External Action Block returned no data in the repeating group.

CA Gen generates the status of the repeating group and places it in the External Action Block stub as a two letter reference that is described in the following list:

AC

Active/Inactive flag for line item in group view. Used by CA Gen.

AS

Attribute status. Used by CA Gen.

FL

View full. Used by CA Gen in action blocks, not EABs.

PS

Subscript/pointer for repeating group view. Used by CA Gen.

RF

View referenced. Used by CA Gen in action blocks, not EABs.