Show TOC

Procedure documentationCreating a Constant Expression

 

A constant expression is used to define result values for other expressions.

Note Note

A constant expression can take only element data types.

End of the note.

Procedure

  1. Open the application in the Object Manager panel.

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

    The Contained Objects tab page appears.

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

  4. In the Object Creation dialog box that appears, choose Constant from the Type field.

    The Constant section appears.

  5. Enter the following data:

    • Name

    • (Optional) Short Text

    • (Optional) Text

  6. Under the Constant section, choose the type of constant from the Type field.

    Depending on the type of constant you choose, the fields in which you have to enter values appear.

    For more information, see Constant Expression

  7. Choose Create and navigate to object.

    The result data object appears under the Detail section.

    By default, the type of the constant selected appears as the result data object.

    Note Note

    If you choose Create, the constant expression appears under the Contained Objects tab. Click the name of the created object.

    End of the note.
  8. If you want to change the result data object, choose Graphical Access (Graphical Access).

    You can select a standard element, select an existing data object or create a new result data object.

    • Select a Standard Type

      • 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. In the context menu, choose Select...

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

        The data object is added as the result data object.

    • Create a New Data Object

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

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

        For more information, see Creating Data Objects

  9. Choose the Activate button.

  10. Save the expression.