Show TOC

Procedure documentationCreating a Loop Expression

Procedure

  1. Open the application in the Object Manager panel.

  2. Under the Detail section, choose the Contained Objects tab.

    The Contained Objects page appears.

  3. Choose Expression from the Type field and choose Create Object.

  4. In the Object Creation dialog box that appears, choose Loop in the Type field.

  5. Enter the following data:

    • Name

    • (Optional) Short Text

    • (Optional) Text

  6. Choose Create and navigate to object.

    The newly created loop expression appears in the Object Manager panel.

    Note Note

    If you choose Create the loop expression appears under the Contained Objects tab.

    End of the note.
  7. Choose the result type. You can select return value or perform action.

    • Select Return Value

      1. Choose Return Value in the Result Type field.

      2. 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

          1. Choose Graphical Access (Graphical Access).

          2. In the context menu, choose Default Objects and choose the data object type.

        • Select an Existing Data Object

          1. Choose Graphical Access (Graphical Access).

          2. In the context menu, choose Select....

          3. 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.

          4. Select the data object.

        • Create a New Data Object

          1. Choose Graphical Access (Graphical Access).

          2. In the context menu, choose Create....

          3. 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.

  8. Select the loop mode.

    • Choose Repeat... Times... Mode

      1. Choose Repeat...Times... from the Loop Mode field.

      2. Enter value in the Do following operations field.

      3. Assign rule for the operation.

    • Choose Do... Until... Mode

      1. Choose Do...Until... from the Loop Mode field.

      2. Assign rule for the operation.

      3. Assign the exit condition. You can select an existing expression or create a new expression.

        • Select an Existing Expression

          1. Choose Graphical Access (Graphical Access) next to Until under the Detail section.

          2. In the context menu, choose Select....

          3. 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.

          4. Select the expression.

        • Create a New Expression

          1. ChooseGraphical Access (Graphical Access) next to Until under the Detail section.

          2. In the context menu, choose Create...

          3. In the Object Creation dialog box that appears, create the expression.

            For more information, see Creating Expressions

    • Choose While... Do... Mode

      1. Choose While...Do... from the Loop Mode field.

      2. Assign the exit condition. You can select an existing expression or create a new expression.

        • Select an Existing Expression

          1. Choose Graphical Access (Graphical Access).

          2. In the context menu, choose Select....

          3. 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.

          4. Select the expression.

        • Create a New Expression

          1. Choose Graphical Access (Graphical Access).

          2. In the context menu, choose Create....

          3. In the Object Creation dialog box that appears, create the expression.

            For more information, see Creating Expressions

      3. Assign rule for the operation.

    • Choose For Each Entry in... Mode

      1. Choose For Each Entry in... from the Loop Mode field.

      2. Assign the exit condition. ChooseGraphical Access (Graphical Access) next to For Each Entry in under the Detail section.

      3. In the context menu, choose Select....

      4. In the Object Query dialog box that appears, select the object.

  9. Assign a rule.

    • Select an Existing Rule

      1. Choose Info Blank (Info Blank) next to Operations section.

      2. In the context menu, choose Start of the navigation path Add Rule at First Position Next navigation step Select an Existing Rule... End of the navigation path.

      3. In the Object Query dialog box that appears, enter the name of the rule and choose Search.

        The rule appears below the Search button.

      4. Choose the rule.

    • Create a New Rule

      1. Choose Info Blank (Info Blank) next to Operations section.

      2. In the context menu, choose Start of the navigation path Add Rule at First Position Next navigation step Create Rule... End of the navigation path

        A new rule appears under the Operations section.

        For more information, see Creating a Rule

  10. Activate the expression.

  11. Save the expression.