Creating a Constant Expression 
A constant expression is used to define result values for other expressions.
Note
A constant expression can take only element data types.
Open the application in the Object Manager panel.
Under the Detail section, choose the Contained Objects tab.
The Contained Objects tab page appears.
Choose Expression from the Type field and choose Create Object.
In the Object Creation dialog box that appears, choose Constant from the Type field.
The Constant section appears.
Enter the following data:
Name
(Optional) Short Text
(Optional) Text
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
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
If you choose Create, the constant expression appears under the Contained Objects tab. Click the name of the created object.
If you want to change the result data object, choose
(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
In the context menu, choose Select...
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
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
Choose the Activate button.
Save the expression.