Get and Set Report Options APIs
There are two calls related to Report Options: getReportOption and setReportOption.
The
setReportOptionis used to designate a value for a specific report option.The
getReportOptionallows you to view the current value assigned to that option.
cv.api.report.setReportOption(name:string, value:string);
cv.api.report.getReportOption(name:string);
To ensure your changes are reflected in the report, the refreshReport method should be called:
cv.api.operation.refreshReport();
Acceptable values for setting a report option are 'true' and 'false'. The getReportOption returns one of these same values.
The following lists report options.
showRowGrandTotal
This option allows you to set the visibility of row grand totals for the pivot table.
cv.api.report.setReportOption("showRowGrandTotal", "true");
cv.api.report.getReportOption("showRowGrandTotal"); // Returns "true"
showColumnGrandTotal
This option allows you to set the visibility of column grand totals for the pivot table.
useNonVisualTotals
This option allows you to set the visibility of non-visual totals for the pivot table.
showEmptyCells (Deprecated)
This option has been deprecated. Please use showEmptyEnum.
This option allows you to set the visibility of cells with no data.
showEmptyEnum
This option allows the user to set the options available for the parameter via a drop-down menu. The following values are allowed:
SHOW_MEASURE - Includes measure data. Default value.
SHOW_CALCULATED_MEASURE - Includes measure and calculated measure data.
SHOW_EMPTY - Includes all measure and calculated measure data, including null measure data.
showDrillLinks
This option allows you to set the visibility of drill-through links on cells for pivot table.
autoRefresh
This option allows you to set the ability to automatically refresh the report when a user makes a report definition change.
freezeColumns
This option allows you to set the freezing of the column headers in the pivot table when the user scrolls.
freezeRows
This option allows you to set the freezing of the row headers in the pivot table when the user scrolls.
URL Parameters
All of the above report options can also be set through the URL as URL parameters.
Last updated

