How Do I Control the Triggering of Defaults After a Search?

If a search returns multiple fields and more than one of these fields can trigger default, then it might be more efficient to only have one of these fields trigger the defaulting.

This is accomplished by creating a new function called overrideDefaultTriggersFor_​SEARCHGROUP within the tab page that contains the search, where SEARCHGROUP is the name of the searchGroup you want to override.

The function must return an object with the triggering field(s) are attributes with a true value.

For example



function overrideDefaultTriggersFor_SRCH1() {
var triggers = {};

triggers["ACCT_ID"] = true;
            triggers["SA_ID"]=true;

return triggers;
}