WbkDataView.RequestMetadata

Syntax

RequestMetadata: function (sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The RequestMetadata event is fired on metadata request.

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 demoRequestMetadataButt = new PP.Ui.Button({
	ParentNode: "params", //DOM parent node
	Content: "Change Language Settings", //Text      
	Click: PP.Delegate(onClickDemoRequestMetadata)     
}); 
function onClickDemoRequestMetadata()
	{
		workbookBox.getDataView().RequestMetadata.add(PP.Delegate(function(){
			alert("Workbook parameter change event occurred");
		}));
		PP.setCurrentCulture(PP.Cultures.en);
	}

After executing the example the WorkbookBox component and the button named Change Language Settings are placed on the HTML page. Clicking this button changes language settings and shows the following message: Workbook parameter change event has occurred.

See also:

WbkDataView