The preprocessor also interprets references that are embedded in comments, for example, $Lastname$. Referencing a column in a script comment results in the script being run when the column value is changed.
Example for use in templates:
An employee’s starting date is filled with a template. This template should run when the employee’s surname changes. The template for Person.Entrydate is therefore:
'$Lastname$
Value = Date
Related topics
Syntax
Display pattern corresponding to an object's DisplayPattern column:
$[Display]$
Display pattern corresponding to an object's DisplayPatternLong column:
$[LongDisplay]$
Example of usage on the base object
$[Display]$
Example of usage over foreign key relation
For assignments ofActive Directory groups to departments, use the ADSGroup's DisplayPatternLong.
$FK(UID_ADSGroup).[LongDisplay]$
Related topics
The Base. syntax always accesses the object that is currently loaded. The base. object can be used in tasks, selection scripts for object definitions and insert values. However, the base. object cannot be used in templates, formatting scripts, or processes.
Syntax
-
Simple value assignment
Base.PutValue("<column>", <value>)
-
Value assignment with variable replacement (value must be a character string)
Base.PutValue("<column>", context.Replace(<value>))
Example
Base.PutValue("IsForITShop", 1)
Base.PutValue("UID_ADSContainer", context.Replace("%cont%"))