We have updated WebDataRocks EULA, effective as of April 18, 2024. Learn more about what's changed.
Documentation menu

updateData

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:

NameTypeDescription
filenameStringoptional The URL to JSON or CSV file. Also can be the URL to the server-side script generating the data.
fieldSeparatorStringoptional 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.
dataStringoptional 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: