An Expression is a piece of code when executed returns a value. Expression consist of aFunctions, constants, and variables.
See also
=NOW()
=DATEOFFSET(NOW(),-6)
=DATEOFFSET(NOW(),-6)
Where now() is a function which is an input to DATEOFFSET() function.
=DATEOFFSET(NOW(),%mm)
Where “mm” is an RBA ‘Object Field Name’ or DX Input Column which gets resolved in the runtime.
=DATEOFFSET(NOW(),$nn)
Where $nn is an input parameter which gets resolved in the runtime.
={"value1", %mm, $nn}
An ‘Object field value’ can be accessed via %ObjectName.
O_Aggregation_Key0 =SUM(%I_Material, %I_Plant)
O_QUANTITY =%I_QUANTITY
An Array of Object is constructed by enclosing individual values within curly braces { }.
Note
Operator IN or !IN expects Array Of Object.
={"value1", %mm, $nn}
=("value1", %mm, $nn)
={"US", "IN"}
={10, 20}
Note
As a special case if the expression starts with =( and ends with ) then in the runtime it is automatically converted to ={val1, val2, val3}.
=(val1, val2, val3)
In an expression, a User Parameter value can be accessed via $Parameter.
O_OFFSET =$OFFSET
O_FORMAT =$FORMAT
Expression supports variable type $ or % with space and special chars in between.
%"variable name"
$"variable name"
It is comparable with Java String literals.
If the variable does not contain space or special chars, then the old rule is still valid.
%Column2
Which is equivalent to,
%"Column2"
Assume that the source table contains column name as 2. Column 2.
Thus inside an Expression with UCASE call needs to be written as below,
=UCASE(%"2. Column 2")
Assume that the source table contains column name as 2. Column 2.
Thus inside an Expression with UCASE call needs to be written as below,
=UCASE(%"2. Column \\2")
Assume that the source table contains column name as 2. “My” Column 2.
Thus inside an Expression with UCASE call needs to be written as below,
=UCASE(%"2. \"My\" Column \\2")