save(parameters:Object)

Saves all current configurations, such as data source, formatting, which data is displayed. All these configurations are saved in a JSON file called report. Such report can be saved both locally and to a server.

Parameters

Gets parameters object as an input parameter. This object can have the following properties:

Name Type Description
filename String optional The name of the report file. The default name is report.json.
destination String optional Destination for the download. By default, destination is set to "file", which means the report is saved locally. Set destination as "server" to save the report to the server.
url String optional The URL to the server script saving the report. It is required when saving the report to the server (the report file is passed as a POST parameter).
embedData Boolean optional If true, CSV data is embedded within the report. By default, the report with CSV data is saved with the reference to CSV file.
withDefaults Boolean optional If true, the report is saved with the default values for all options.
withGlobals Boolean optional If true, the report is saved with the options defined in global object.

Example

Save a report with custom name: