RequestMetadata: function (sender, args);
sender. Event source.
args. Event information.
The RequestMetadata event is generated when no metadata is available in express report chart data source.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see the page Example of Creating the ExpressBox Component). Handle the RequestMetadata event:
// Get express report chart view var chartView = expressBox.getDataView().getChartView(); // Handle the RequestMetadata event chartView.RequestMetadata.add(function () { console.log("Metadata is requested.") }); // Call the RequestMetadata event chartView.RequestMetadata.fire(this);
After executing the example as the result of firing the RequestMetadata event the browser console displays a message that metadata is requested.
See also: