getSetMetadataSettings (wbk);
wbk. Sets workbook value.
The getSetMetadataSettings method returns body of a request to save workbook metadata.
To execute the example, the page must contain the WorkbookBox component named workbookBox and the service used to work with time series named tsService (see Example of Creating the WorkbookBox Component), and also add the following code in the handler, that processes document opening event:
var getSetMetadataSettingsButt = new PP.Ui.Button({ ParentNode: document.body, //DOM parent node Content: "Metadata Parameters", //text Click: PP.Delegate(onClickGetSetMetadataSettings) }); function onClickGetSetMetadataSettings() { var metadataSettings = tsService.getSetMetadataSettings (wbk); tsService._invokeRemoteProc(wbk, metadataSettings, PP.Delegate(onResponse, this)); function onResponse(sender, args){ alert(args.ResponseText); } }
After executing the example a button named Metadata Parameters is placed on the HTML page. On clicking this button the body of request to save workbook metadata is returned and shown in an appropriate message.
See also: