Show TOC

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

 

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. In the Object Manager panel, under the Detail section, choose the Assigned Objects tab.

    The Assigned Objects tab page appears.

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

  3. In the Object Creation dialog box that appears, enter the following data:

    • Name

    • Short Text

    • Text

  4. Choose Constant from the Type field.

  5. In the Constant section that appears, 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.

    More information: Constant Expression

  6. Choose Create & Navigate To Object .

    Note Note

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

    End of the note.
  7. The result data object appears under the Detail section.

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

  8. If you want to change the result data object, choose Show Result Data Object.

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

    • Create a New Data Object

      1. Choose Graphical Access (Graphical Access).

      2. In the context menu, choose Create result Data Object....

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

        More information: Creating Data Objects

    • Select an Existing Data Object

      1. Choose Graphical Access (Graphical Access).

      2. In the context menu, choose Select Result Data Object...

      3. In the Object Query dialog box that appears, select the data object and choose Select.

  9. Save the expression.