PeopleCode SearchInit Event

Your rating: None Average: 3.5 (11 votes)

Things to know about SearchInit PeopleCode event:

  • SearchInit PeopleCode is performed before the search page is displayed.
  • User SearchInit to control processing before a user enters values in the search page.
  • Place SearchInit PeopleCode on search key fields or alternate search key fields on a search record or component search record.
  • Do not place errors or warnings in SearchInit

Here is an example that prevents a user from using the change password page to change another user's password!

rem Self Service user profile
PSUSERSELF_SRCH.OPRID = %UserID;
SetSearchDialogBehavior(0);

SetSearchDialogBehavior with a parameter of 0 will ship over the search page if the search key fields are populated ;)

Please try to help out with unanswered topics on the forum. Chances are you have had the same issue/question some time in your IT career!