overrideSortOnLoad
This method is called once while initializing the list and provides a means for modifying the sort parameters initially applied to a work item, process instance, or event list.
The sort specification appears in the Sort dialog and may be modified by the user. To prevent users from modifying the sort, remove access to "Sort" in userAccess.xml.
Parameters
- oValue - (Object) An object containing properties defining the sort specification:
- oValue.sort[] - (Array of objects) Each object has the following properties that identify a sort attribute:
- oValue.userChanged - (boolean) A property containing a flag indicating whether or not the user has ever modified the value, facilitating logic related to default values. This value will be null if it is unknown whether the user has changed the value because the view was created prior to implementation of the callout interface.
- oContext - (Object) An object that provides information about the list being modified with the following properties:
- oContext.userName - (string read-only) The name of the logged-in user.
- oContext.userGuid - (string read-only) A unique identifier for the logged-in user.
- oContext.viewType - (string read-only) The view type of the list. The possible values are:
- oContext.viewName - (string read-only) The name of the view that created the list.
- oContext.viewDescription - (string read-only) A description of the view.
- oContext.isSystemView - (boolean read-only) True if the view is a system view; False if the view is a user-defined view.
Copyright © Cloud Software Group, Inc. All rights reserved.