The default value of an attribute can be evaluated dynamically.
Standard dynamic values
You simply indicate:
The other available variables are as follows:
The search criteria are character strings.
To initialize the value of a filter criterion, expression returning a character string must be used. An expression that returns a reference is not acceptable.
Example:
To initialize the agent code on the [WR search] form, the expression {actor.code} should be used.
Expression using dynamic values
Examples:
Expressing using the value of an attribute of the object associated with a form
The possibilities presented below are only valid:
The expression must have the following format: {formAnimator.bean.attribute} where attribute corresponds to the code an attribute of the master object.
Example:
The period for a resource line in the [Labor] tab of a work order must be initialized with the anticipated workload on the work order.
→ The default value of the attribute "expTime" for the EXPWORESOURCES objects (resources planned for the work order) and WORESOURCES (resources of the validated work order) must be: {formAnimator.bean.expTime}
The attribute used in the expression must be readable as soon as the detailed form is opened and cannot therefore be associated with an object entered after the mask is opened.
For example, an attribute of the target Asset of a WR cannot be used when opening the creation form for that WR.
Default value according to user group
You can define a different default value according to: