Skip to main content

Scenario: Pivot Table Widget with KPI as Data Source

Scenario: Pivot Table Widget with KPI as Data Source

In this scenario, within the %OnDashboardAction() method, the pContext object contains the properties described in the following table. As noted, the contents of the pContext object vary depending on whether the widget is displaying the pivot table itself (pivot mode) or a listing (listing mode).

Property Name Contents in Pivot Mode Contents in Listing Mode
currValue Value of first selected cell Value of the first selected cell that was displayed before the listing was shown
currSeriesNo Column number Column number of the first selected cell that was displayed before the listing was shown
valueList Null Comma-separated list of values from the first column of the listing (these values must not contain commas)
pivotVariables A proxy object that contains one property for each pivot variable. Specifically, pContext.pivotVariables.varname contains the value of the pivot variable varname. In this proxy object, all pivot variable names are in lowercase. For example, if the server defines a pivot variable named MyVar, this pivot variable is available as pContext.pivotVariables.myvar Same as in pivot mode
filters An array that indicates the current values of all filter controls. Each node in the array corresponds to one of the filters defined by the data source KPI. The subscript for each node in the array is the name of the filter, as specified in the KPI definition class. The value of the node is the key or keys currently selected for that filter, in the form described in Allowed Default Values for Filters. If no keys are selected for a filter, the value of the corresponding node is null. Same as in pivot mode
dataSource Name of the current data source Name of the current data source
FeedbackOpens in a new tab