How to save the current state of the report?

Resolved

Is it possible to show this report next time?

1 answer

WebDataRocks Team WebDataRocks March 16, 2018

Hello,
The current state of WebDataRocks pivot grid can be saved into a local JSON file.
To save this report you need to click Save tab in the Toolbar.
Later you have several options:

  1. store report locally (or on the server) and load it via Toolbar
  2. specify a path to your report while embedding pivot grid:
    <script>
    var pivot = new WebDataRocks({
    container: "#wdr-component",
    toolbar: true,
    // replace this URL with your report file
    report: "https://cdn.webdatarocks.com/reports/report.json"
    });
    </script>

Also, you can get the current state of WebDataRocks pivot via API.
Use webdatarocks.getReport() API call in your code to obtain the report. To set report via API you can use webdatarocks.setReport(report), where report is a JSON object containing the report.