applyChanges()

For an Embedded Table in a Dashboard, writes the user-modified data into the corresponding Embedded Table in the Data Worksheet. See Table Properties for information on making a Table editable.

You do not need to use this function to save Table data if ‘Write Back to Storage’ is enabled in Table Properties.

Example

The script below can be placed in the onClick handler of a Submit button. See Add Component Script for more information about the onClick handler.

Table1.applyChanges();
saveWorksheet();

// Refresh the Dashboard with saved data from the Data Worksheet:
refreshAfterSubmit = true;

See saveWorksheet() and refreshAfterSubmit for more information about these functions.

Either syntax below can be used in component script:

applyChanges                 // unqualified
TableView1.applyChanges      // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.