TitleBox.RequestMetadata

Syntax

RequestMetadata: function (sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The RequestMetadata event occurs when data source of the express report title contains no metadata.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Handle the metadata request event, refreshing all contents of the express report title:

// Get view of the express report title
var titleView = expressBox.getDataView().getTitleView();
// Handle the RequestMetadata event
titleView.RequestMetadata.add( function() { 
    if (titleView.getNeedValidate()) {
        titleView.getInstance().refreshAll();
    }
}
);

After executing the example each time the metadata request event RequestMetadata occurs, all content of the express report title is refreshed.

See also:

TitleBox