Workbook.getKeepHistorySerieRub

Syntax

getKeepHistorySerieRub(serie);

Parameters

serie. Sets series.

Description

The getKeepHistorySerieRub method returns if saving changes history (revisions list) is enabled in the source (time series database) of the specified series.

Example

To execute the example, the page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component), and also add the following code in the handler, that processes document opening event:

	//Check if the source (time series database) of the specified series has indicator of saving history of changes (list of revisions).
	if (wbk.getKeepHistorySerieRub(wbk.getSeries()[0]))
	//Sets whether history of changes is saved
	wbk.setNeedShowSaveDataDialog(True);				
	//Create an instance of the class that implements save dialog
	var wbkSaveDataDialog =  new PP.TS.Ui.WbkSaveDataDialog({
	ResourceKey: "WbkSaveDialog",
	});
	//Check if it is required to display dialog on saving of data
	if (wbk.getNeedShowSaveDataDialog())
	// Display dialog
	wbkSaveDataDialog.show();

The Save Data dialog box opens after the example execution.

See also:

Workbook