Here is a worthy tip to take note of. If you are going into a new page and using a search view, yet you already know the keys of that search view, you can use the PeopleCode function SetSearchDialogBehavior. This function is called from the SearchInit PeopleCode of the actual search record and can overide the default behavior. You have two settings to choose from: skip if possible (0) and force display (1).

 

If you use the skip if possible setting, then you need to have the keys. Assume your keys are EMPLID, EMPL_RCD, and EFFDT. Here is what the SearchInit PeopleCode would look like:


SetSearchDialogBehavior(0);
EMPLID = %EmployeeID;
EMPL_RCD = 0;
EFFDT = &DateVariable;