SpliceTabSheetDataSource.getIsAsync

Syntax

getIsAsync();

Description

The getIsAsync method determines mode for working with splice table data source.

Comments

This method returns True if asynchronous mode of working with table data source is selected, and False if working mode is synchronous.

Example

To execute the example, the HTML page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component). Determine mode of working with splice table data source:

// Get workbook properties panel
var propertyBar = workbookBox.getPropertyBarView();
// Get parameters panel
var parametersPanel = propertyBar.getParametersPanel();
// Display this panel
parametersPanel.show();
// Expand the panel
parametersPanel.expand();
// Get time series splice setup wizard 
var spliceMethodWizard = parametersPanel._SpliceMethodWizard;
// Display this wizard
spliceMethodWizard.show();
// Get table data source for the specified wizard
var tabSheetDS = spliceMethodWizard._DataSource;
// Determine data source working mode
var isAsync = tabSheetDS.getIsAsync() ? "asynchronous" : "synchronous";
console.log("Table data source " + isAsync + ".");
// Load all cell range data to table
var tabSheet = spliceMethodWizard._TabSheet;
var range = tabSheet.getRange(0, 0, tabSheetDS._Columns.length - 1, tabSheetDS.getRowsCount() - 1);
tabSheetDS.loadRanges(range);
// Refresh table data source
tabSheetDS.update();

After executing the example the mode of working with data source is shown in the browser console for the table of spliced time series:

Table data source is asynchronous.

See also:

SpliceTabSheetDataSource