field_exec

Executes the field triggers in the active window.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X      

Syntax

void field_exec([name | number] | [attributes,flag])
string           name
int              number,attributes,flag

Description

Executes all field triggers if specific ones are not specified.
name specifies particular fields by name.

number specifies particular fields field sequence number.

attribute specifies a bitmask.

flag = true specifies that all fields with the specified attribute are executed; If flag is not specified, all fields that do not have any of the field attributes are executed.

Notes

The value of the window-name.AF is preserved across the field_exec() call. Any changes to the active field in the field trigger are not preserved.

Example

Executes all triggers for fields with the CALCULATE and PRIMARY KEY attributes:
field_exec(uat_calc|uat_prikey,true);