SearchClear


You can use the SearchClear() method which is part of the Field class to clear search values on a particular search key field. This is how you can reset search parameters specified by a user when they press the Return to Search button.

Use the following shortcut notation to call the function:

RECORD.FIELD.SearchClear();

Or you can declare a Field class and then call the method.

Put this code in the SearchInit event.

If you are clearing a number of fields, I recommend creating a simple function (e.g. ResetSearch) in FieldFormula and calling that function rather than putting a single line of code in the SearchInit event for each field you are clearing. Just makes maintenance a little bit simpler as you only need one function and one call.


Revision #1
Created Tue, Jul 23, 2019 8:17 PM by PeopleSoft Wiki
Updated Tue, Jul 23, 2019 8:19 PM by PeopleSoft Wiki