field_init

Executes the field initialization triggers in the active window.

Available in:

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

Syntax

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

Description

Executes all field initialization 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_init() call. Any changes to the active field in the field initialization trigger are not preserved.

Example

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