TSService.getEditAllSeriesSettings

Syntax

getEditAllSeriesSettings (wbk, allSeries);

Parameters

wbk. Sets workbook value.

allSeries. Sets series.

Description

The getEditAllSeriesSettings method returns body of a request to edit all workbook 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:

	var editAllSeriesButt = new PP.Ui.Button({
		ParentNode: document.body, //DOM parent node
		Content: "Edit Series", //Text
		Click: PP.Delegate(onClickEditAllSeries)
		});
	function onClickEditAllSeries()
	{
		//Create an object containing information about tooltip type:
		//7 - Value;
		//5 - Date;
		//8 - Note.
		var series ={ its: { it: [] }, commentAttribute : {k : 7} };//Tooltip type - value
		//Get body of request for setting tooltip for workbook series
		var body = tsService.getEditAllSeriesSettings(wbk, series);
		//Set whether workbook is changed
		wbk.setIsChanged(True);					
		callback = tsService._visitCallback(onRowsEdited, new PP.Delegate(tsService._OnOpened, tsService, { Workbook: wbk }));
		//Send request to server for setting tooltip
		tsService._send(body, callback);
		function onRowsEdited(){
			//Refresh the workbookBox component
			workbookBox.refreshAll();
		}
	}

After executing the example a button named Edit Series is placed on the HTML page. After clicking this button on hovering over the table cell marked with a red label, the tooltip shows cell value:

See also:

TSService