Workbook.NeedShowSaveDataDialog

Syntax

NeedShowSaveDataDialog: Boolean;

Description

The NeedShowSaveDataDialog property is used to store information that series with enabled history is changed (series data or attributes).

Comments

If this property is set to True the series has been changed, if the property is False the series has not been changed.

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:

	var setNeedShowSaveDataDialogButt = new PP.Ui.Button({
		ParentNode: document.body, //DOM parent node
		Content: 'Set whether Workbook is Changed', //Text
		Click: PP.Delegate(onClickSetNeedShow)
	});
	function onClickSetNeedShow()
	{	
		//Set changed data of the Table express report view.
		wbk.setTableChangedData({ c: [] });
		//Set whether workbook properties, data or attributes are changed
		wbk.setNeedShowSaveDataDialog(True);					
	}

After executing the example a button named Set Workbook Change Indicator is placed in the HTML page. Clicking this button sets a property that contains information on changed data of the express report view Table, and the indicator showing if workbook properties, data or attributes are changed. After clicking the Set Workbook Change Indicator button, click the Refresh button in the Home tab of workbook ribbon to open a confirmation dialog box. Clicking Yes in the confirmation dialog box brings up a box where the user can enter a comment on data saving. If you do not click the Set Workbook Change Indicator button, clicking the Refresh button in the Home ribbon tab does not show the confirmation dialog box.

See also:

Workbook