This means you cannot use functions such as GetRecord, GetRow, and so on, which relyon context, without specifying more context.Activate PeopleCode can only be associated with pages. This event is valid only for pages that are defined as standard or secondary. This event isnot supported for subpages.
Use FieldChange PeopleCode to recalculate page field values, change the appearance of page controls, or perform other processing that results from a field change other thandata validation. To validate the contents of the field, use the FieldEdit event. The FieldChange event applies to the field and row that just changed.FieldChange PeopleCode is often paired with RowInit PeopleCode. In theseRowInit/FieldChange pairs, the RowInit PeopleCode checks values in the component andinitializes the state or value of page controls accordingly. FieldChange PeopleCode thenrechecks the values in the component during page execution and resets the state orvalue of page controls. To take a simple example, suppose you have a derived/work field called PRODUCT, thevalue of which is always the product of page field A and page field B. When thecomponent is initialized, you would use RowInit PeopleCode to initialize PRODUCT equalto A × B when the component starts up or when a new row is inserted. You could thenattach FieldChange PeopleCode programs to both A and B which also set PRODUCT equalto A × B. Whenever a user changes the value of either A or B, PRODUCT is recalculated.FieldChange PeopleCode can be associated with record fields and component recordfields.
The FieldDefault PeopleCode event enables you to programmatically set fields to defaultvalues when they are initially displayed. This event is initiated on all page fields as partof many different processes; however, it triggers PeopleCode programs only when thefollowing conditions are all true:
The page field is still blank after applying any default value specified in the recordfield properties. This is true if there is no default specified, if a null value is specified, or if a 0 isspecified for a numeric field.
The field has a FieldDefault PeopleCode program.
Dinesh Kumar ©