Kap.JsBlock.getDataBox

Syntax

getDataBox ();

Description

The getDataBox method returns data area of the report contained in dashboard block.

Comments

To add a report to dashboard, click the Reports button in the Home ribbon tab and select desired report type. Next select data source in appropriate tab of side panel.

Example

To execute the example the page must contain a dashboard designed named kapBox, and the currentBlock variable must be defined in the page. This variable must contain selected dashboard block (see Kap.KapBox). The BODY tag must contain a DIV element with the checkBox identifier. Add a checkbox, selecting or deselecting which will show or hide working area of the report stored in selected block:

var dataBoxCheckBox = new PP.Ui.CheckBox({
    ParentNode: "checkBox",
    Content: "Show/hide block data area",
    CheckedChanged: function () {
        if (dataBoxCheckBox.getCheckedState() == true) {
            currentBlock.getDataBox().show();
        }
        else
            currentBlock.getDataBox().hide();
    }
});

After executing the example the Show/Hide Block Data Area checkbox is added to the page. Selecting or deselecting this checkbox shows or hides working area of the report stored in the selected block.

See also:

Kap.JsBlock