setter attribute
Specifies whether the value of the write parameter will be copied to the corresponding read parameter (without the need to add a trigger or an action).
Refer to Parameter change events for more information on when the set is executed in relation to other operations. For example, if a read-write parameter combination uses the setter=true option, a trigger goes off when the value of the write parameter changes, and the write parameter also triggers a QAction, the order of execution is the following:
- The regular triggers on the write parameter are executed. Actions executed by these triggers will not yet see the read parameter value adapted to the new write parameter value. The read parameter will still have the old value at this point.
- The setter is executed, which results in the value being copied to the read parameter.
- The QActions on the write parameter are executed. The read parameter will have the same value as the write parameter at this point.
Content Type
Parent
Remarks
Default value: false.
Note
- If the button is part of a table and no corresponding read parameter is present, the write parameter may execute its triggers or actions a second time.
Examples
<Param id="1" setter="true">