Creating a Loop Expression 
Open the application in the Object Manager panel.
Under the Detail section, choose the Contained Objects tab.
The Contained Objects page appears.
Choose Expression from the Type field and choose Create Object.
In the Object Creation dialog box that appears, choose Loop in the Type field.
Enter the following data:
Name
(Optional) Short Text
(Optional) Text
Choose Create and navigate to object.
The newly created loop expression appears in the Object Manager panel.
Note
If you choose Create the loop expression appears under the Contained Objects tab.
Choose the result type. You can select return value or perform action.
Select Return Value
Choose Return Value in the Result Type field.
Assign the result data object. You can select a standard type, an existing data object or create a new data object.
Select a Standard Type
Choose
(Graphical Access).
In the context menu, choose Default Objects and choose the data object type.
Select an Existing Data Object
Choose
(Graphical Access).
In the context menu, choose Select....
In the Object Query dialog box that appears, enter the name of the data object in the Object Name field and choose Search.
The data object appears below the Search button.
Select the data object.
Create a New Data Object
Choose
(Graphical Access).
In the context menu, choose Create....
In the Object Creation dialog box that appears, create the data object.
For more information, see Creating Data Objects
Select Perform Action
Choose Perform Action in the Result Type field.
An action is added as the result data object.
Select the loop mode.
Choose Repeat... Times... Mode
Choose Repeat...Times... from the Loop Mode field.
Enter value in the Do following operations field.
Assign rule for the operation.
Choose Do... Until... Mode
Choose Do...Until... from the Loop Mode field.
Assign rule for the operation.
Assign the exit condition. You can select an existing expression or create a new expression.
Select an Existing Expression
Choose
(Graphical Access) next to Until under the Detail section.
In the context menu, choose Select....
In the Object Query dialog box that appears, enter the name of the expression in the Object Name field and choose Search.
The expression appears under the Search button.
Select the expression.
Create a New Expression
Choose
(Graphical Access) next to Until under the Detail section.
In the context menu, choose Create...
In the Object Creation dialog box that appears, create the expression.
For more information, see Creating Expressions
Choose While... Do... Mode
Choose While...Do... from the Loop Mode field.
Assign the exit condition. You can select an existing expression or create a new expression.
Select an Existing Expression
Choose
(Graphical Access).
In the context menu, choose Select....
In the Object Query dialog box that appears, enter the name of the expression in the Object Name field and choose Search.
The expression appears under the Search button.
Select the expression.
Create a New Expression
Choose
(Graphical Access).
In the context menu, choose Create....
In the Object Creation dialog box that appears, create the expression.
For more information, see Creating Expressions
Assign rule for the operation.
Choose For Each Entry in... Mode
Choose For Each Entry in... from the Loop Mode field.
Assign the exit condition. Choose
(Graphical Access) next to For Each Entry in under the Detail section.
In the context menu, choose Select....
In the Object Query dialog box that appears, select the object.
Assign a rule.
Select an Existing Rule
Choose
(Info Blank) next to Operations section.
In the context menu, choose .
In the Object Query dialog box that appears, enter the name of the rule and choose Search.
The rule appears below the Search button.
Choose the rule.
Create a New Rule
Choose
(Info Blank) next to Operations section.
In the context menu, choose
A new rule appears under the Operations section.
For more information, see Creating a Rule
Activate the expression.
Save the expression.