SearchDefault property: Field class
Description
If this property is set to True, system defaults (the default values set in the record field definitions) are enabled on search dialogs for the field. Setting this property to True does not cause the FieldDefault event to fire.
The system default is done only once, when the search dialog first starts, immediately after any SearchInit PeopleCode. If the user subsequently blanks out a field, the field isn't reset to the default value. Setting SearchDefault to False disables default processing for the field executing the property.
SearchDefault is effective only when used in SearchInit PeopleCode programs.
This property is read/write.
Example
&CHARACTER.SearchDefault = True;
/* assuming &CHARACTER is a search key, and has a default value */
This example turns on edits and system defaults for the SETID field in the search dialog box:
&SETID = GetField(INV_ITEMS.SETID);
&SETID.SeachDefault = True;
&SETID.SearchEdit = True;