SearchEdit property: Field class
Description
If this property is set to True, SearchEdit enables system edits (edits specified in the record field definition) for the field, for the life of the search dialog box. Setting SearchEdit to False disables system edits. In the Add mode search dialog box, the following edits are performed when the end-user clicks the Add button. In any other mode, the following edits are performed when the end-user clicks the Search button:
-
Formatting
-
Required Field
-
Yes/No Table
-
1/0 Table
-
Translate Table
-
Prompt Table
SearchEdit does not cause the FieldEdit, FieldChange, or SaveEdit PeopleCode events to fire during the search dialog.
You might use SearchEdit to control access to the system. For example, you can apply this function to the SETID field of a dialog box and require the user to enter a valid SETID before they are able to click OK on the search dialog box.
This property is read/write.
Example
&CHARCTER.SearchEdit = True;
/* assuming &CHARACTER is a search key, and contains an edit table
such as translate table defined in its field properties. */
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;
Considerations Using SearchEdit
If you use this method in the SearchInit event, the search page options are limited to the "=" and "IN" operators.