Show TOC

Procedure documentationCreating a Case Expression Locate this document in the navigation structure

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 Case 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 case expression appears in the Object Manager panel.

    Note Note

    If you choose Create the case 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.

            The element is added as the result data object.

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

            The data object is added as the result 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. Define the case parameter. You can choose a standard type, an existing data object, expression or create a new expression.

    • Select a Standard Type

      1. Choose Graphical Access (Graphical Access) next to When.

      2. In the context menu, choose Default Objects and select the standard type.

    • Select an Existing Data Object

      1. Choose Graphical Access (Graphical Access) next to When.

      2. In the context menu, choose Other Context Parameter....

      3. In the Context Query dialog box that appears, select the data object.

        The selected data object is added as a case parameter.

    • Select an Existing Expression

      1. Choose Graphical Access (Graphical Access) next to When.

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

      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 below the Search button.

      4. Select the expression.

        The expression is added as the case parameter.

    • Create a New Expression

      1. Choose Graphical Access (Graphical Access) next to When.

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

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

        For more information, see Creating Expressions

  9. Enter values in the fields next to ...equals.

    Note Note

    If none of the when table test parameters matches the case parameter, an other parameter is evaluated in order to specify the result.

    End of the note.
  10. Choose Graphical Access (Graphical Access) next to then perform action.

    You can assign an existing action or create a new action.

    • Select an Existing Action

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

      2. In the Object Query dialog box that appears, select the action.

    • Create an Action

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

      2. In the Object Creation dialog box that appears, create the action.

        For more information, see Creating Action Types

  11. Define an other parameter. You can assign an existing expression, create a new expression or insert a value.

    • Select an Existing Expression

      1. Choose Graphical Access (Graphical Access) next to Otherwise perform action.

      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 below the Search button.

      4. Select the expression from the list.

    • Create a New Expression

      1. Choose Graphical Access (Graphical Access) next to Otherwise perform action.

      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

  12. Choose the Activate button.

  13. Save the expression.