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. Sometimes this doesn't make sense e.g. because 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 boolean "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 don't. In that case, define the TabMenu function ignoreResultColumnsFor_<service> as above.
Example:
function ignoreResultColumnsFor_CILCCOPS() {
return {CONT_OPT_TYPE_CD: true}
}