Examples: DeleteForListView() -- Options

The following is the CreateListOptionsData procedure for the Leads list. It uses the DeleteForListView() function to remove any existing view information for the primary view of the Leads list. The list has the ID value 1.

local integer nStatus;

{Remove all records for this list.}
nStatus = DeleteForListView(IG_PROD_ID, 1, LIST_PRIMARYVIEWID) of form syListViewOptionsObj;

{Add the default options record for the list.}
nStatus = CreateDefaultViewRecord(IG_PROD_ID, 1, LISTOPTION_ALLRECORDS, DATERESTRICT_NONE) of form syListViewOptionsObj;

Documentation Feedback