SetRemovelistView function
Syntax
SetRemovelistView(bRemove as Boolean)
Description
Use the SetRemovelistView function to remove list view from component search results page if it contains PII or sensitive data. Use SetRemoveListView in SearchInit people code of Search Record’s key field.
Parameters
| Parameter | Description |
|---|---|
|
bRemove |
Specifies an optional parameter. Default value is true. |
Returns
None.
Example
Write the following PeopleCode in the SearchInit event:
/*add the following code if NATIONAL_ID is a column in search results*/
GetRecord().GetField(Field.NATIONAL_ID).SetDisplayMask("*", 4);
/*add this line if NATIONAL_ID or any other sensitive field is in list view’s Title or Summary fields*/
SetRemovelistView();