overrideColumnAttributes

This method defines the list of attributes available for display as columns in views of work items, process instances, and events. This function is called once while initializing the list of attributes in the Column Selector dialog.

A list of all available attributes is provided as input to this method. The method may be customized to output an altered list by modifying properties of attributes or removing specific attributes, making them unavailable for display as columns.

For a complete list of available attributes, see Workspace Attributes.

Syntax

classProto.overrideColumnAttributes = function(oValue, oContext)

Parameters

  • oValue (Object) An object containing the attributes available in the Column Selector dialog:
    • oValue.availableAttributes[] - (Array of objects) Each object has the following properties that identify an available column attribute.
    • id - (string read-only) Server identifier for the attribute.
    • label - (string) Text identifying the attribute in the list of available columns. The label is initially obtained from the application language resource file: JSXAPPS\base\locale\locale.xml for English, locale.ll_CC.xml for other supported languages (where "ll" is the language code and "CC" is the country code). The callout may modify the text value of the label. However, if multiple languages are supported, a call to the this.app.getLocaleKey() method should be made to determine the language currently selected for the application, and set the label to the appropriately translated value.
  • 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 of the logged-in user.
    • oContext.viewType - (string read-only) The view type of the list. The possible values are:
      • com.tibco.wcc.base.ListContainer.WORKVIEW (Work View)
      • com.tibco.wcc.base.ListContainer.PTVIEW (Process View)
      • com.tibco.wcc.base.ListContainer.EVENTVIEW (Event View)
    • 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.

Returns

The modified oValue object, or null if no changes are to be made.