Variables in equations

You can use these global variables in equations. The syntax is:

Context.<variable>
Equations Global Variable Data Type Description
_baseValue Double The amount of the parameter in a formula. The unit of measure (UOM Extend/Per UOM) is displayed according to the parameter definition.
_CALCOBJECTKEY

_CALCOBJECTSYMBOL

String The main usage of the _CALCOBJECTKEY and _CALCOBJECTSYMBOL variables is to perform object-specific alternate unit of measure equation conversions.

These two variables generally have the same value as _ObjectKey and _ObjectSymbol , unless you run an alternate UOM conversion equation. In that scenario, these variables reference the business object (Item, Formula, etc.).Both _ObjectKey and _ObjectSymbol reference the particular technical parameter that is being converted.

context.ReturnValue String For item calculated equations, use the variable context.ReturnValue.

This variable defines what is specified for the parameter. A return code of 1 completes the equation. For example, the equation 2+2 looks like this:

Dim A As Integer = 2+2
Context.ReturnValue = A
Return 1

See Example of error for Context.ReturnValue with Option Strict On.

_ObjectKey

_ObjectSymbol

String

The object key and the symbol of the object that is being calculated. Or, the parameter code of the parameter for which the alternate unit of measure is calculated.

For example, FS-0001\0001 is an object key for FORMULA.