Click or drag to resize

MapperDatasheetClearDatasheetPreferences Method

Clear the datasheet preferences for the current user for a single MOP or all MOPs. The primary purpose of this method is to consolidate code that allows the user to clear their datasheet filtering/sorting/grouping preferences when these preferences result in a list page being "stuck" with an invalid or timeout-producing query.

Namespace:  NetQuarry.Data.WebMappers
Assembly:  EAP.WebMappers (in EAP.WebMappers.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static void ClearDatasheetPreferences(
	IAppContext cxt,
	string mop
)

Parameters

cxt
Type: NetQuarryIAppContext
The application context.
mop
Type: SystemString
The MOP for which to clear preferences. If null, datasheet preferences for the current user will be cleared for all MOPs.
Remarks
Among the preferences cleared (for the specified pages or all pages per the mop parameter) are preferences for the following:
  • Sorting - Clears latest custom sort ("sort:").
  • FBF Filtering - Clears latest FBF filter ("fbf:").
  • Grouping - Clears custom grouping ("grp:").
  • Full-Text Search - Clears any full-text search ("ftsval:").
  • Saved Filters - Clears applied status of user-saved filters on the Filters menu ("UsrFlt:").
  • Removeable Filters - Clears applied status of predefined filters on the Filters menu ("RmvFlt:").
See Also