updateData(newDataSource:Object)

Connects to a new data source whereas filtering, sorting, etc. remain the same.

Parameters

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

Name Type Description
filename String optional The URL to JSON or CSV file. Also can be the URL to the server-side script generating the data.
fieldSeparator String optional Specific field delimiter for CSV data. By default, WebDataRocks can parse comma-separated values or semicolon-separated values. For all other cases, fieldSeparator should be specified.
data String optional Property to specify JSON data. WebDataRocks supports a certain kind of JSON data – array of objects, where each object is an unordered collection of KEY/VALUE pairs.

Example

Connect to a new CSV file in WebDataRocks reporting tool: