How Do I Disregard Unwanted Search Result Columns?

When you accept the result of a NOLOAD search, the system tries to populate the selected search result row into the current model. There are cases in which this is not desirable, for example, when there is no corresponding attribute for a display-only column. You can exclude a column from being returned as part of a search result by defining the search client's (Tab Page or Search window) function ignoreResultColumns() in the corresponding page's user exit file. Return an object with keys specifying attributes and values all set to true.

Example:


function ignoreResultColumns() {
    return { ADDRESS1: true, CITY: true, POSTAL: true };
}

Since searches can be shared by many search clients, it is possible that some clients want to get a specific column, but others do not. In that case, define the TabMenu function ignoreResultColumnsFor_​<service> as above.

Example:


function ignoreResultColumnsFor_CILCCOPS() {
    return {CONT_OPT_TYPE_CD: true}
}