Skip to main content

Scenario: Pivot Table Widget with Pivot Table as Data Source

Scenario: Pivot Table Widget with Pivot Table 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
currItemNo Row number Null
currFilterSpec MDX %FILTER clause or clauses that represent the filtering applied to the current cell context. This includes values of any filter controls, as well as the row and column context. Null
valueList Null Comma-separated list of values from the first column of the listing (these values must not contain commas)
cubeName Name of the cube queried by this pivot table Null
mdx MDX query defined by this pivot table Null
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 the filter controls which are currently active. The subscript for each node in the array is the MDX expression for the filter. The value of the node is the corresponding key or keys, in the form described at Allowed Default Values for Filters. Same as in pivot mode
dataSource Name of the current data source Name of the current data source
FeedbackOpens in a new tab