SetDefaultAll function
Syntax
SetDefaultAll([recordname.]fieldname)
Description
Use the SetDefaultAll function to set all occurrences of the specified recordname.fieldname within a scroll to a blank value, so that the next time default processing is run these fields are set to their default value, as specified by the record definition, or one set programmatically by PeopleCode located in a FieldDefault event. If neither of these defaults exist, the Component Processor leaves the field blank.
Note:
This function remains for backward compatibility only. Use the SetDefault rowset method instead.
Example
The following example sets the fields TO_CUR and CUR_EXCHNG_RT to their default values on every row of the scroll area where the PeopleCode is run:
SetDefaultAll(TO_CUR);
SetDefaultAll(CUR_EXCHNG_RT);
Related Topics
- PeopleCode API Reference: SetDefault method: Rowset class
- PeopleCode API Reference: SearchDefault property: Field class
- PeopleCode Developer’s Guide: Understanding Data Buffer Access
- SetDefault function
- SetDefaultNext function
- SetDefaultNextRel function
- SetDefaultPrior function
- SetDefaultPriorRel function