fieldsets_in_scope

Description

You can use this function to retrieve the Field Sets that are available within a FOREACH WIZARD loop for use in the model. This function uses the same logic to select Field Sets from a Data Definition as used by the TEXTBLOCK statement with the DATA_DEFINITION and PATH keywords.

fieldsets_in_scope ( datainput; path; fieldsets )

The function has three parameters:

The result of the function is type BOOL; if the function succeeds it returns TRUE, otherwise FALSE.

Example

DATASTRUCTURE FIS
BEGIN
MAP FIELDSET FieldSets
END

DECLARE sets DEFINED_AS FIS

BOOL res := fieldsets_in_scope (data_definition; path; sets.FieldSets)
TEXT customer := sets.FieldSets["Customer"].FirstName + " " + sets.FieldSets["Customer"].LastName

This example retrieves the active Field Sets, and then uses the Customer.FirstName and Customer.LastName fields from this set.