edit(key: Number, callback: PP.Delegate||function, params);
key. Key of express report to be opened.
callback. Callback function to be called after opening a report.
params. Parameters with which the object opens.
The edit method opens an express report in the edit mode.
The method returns a PP.Exp.EaxAnalyzer object.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Open the express report with the 109 key in the edit mode, and process corresponding event:
// Get key of the current express report document console.log("Key of the current express report document: " + expressBox.getSource().getKey()); // Get a service used to work with express report var eaxMdService = expressBox.getService(); // Handle the EaxOpened event eaxMdService.EaxOpened.add(function () { // Get key of opened express report document console.log("Express report document key: " + expressBox.getSource().getKey()); }); // Open express report document with the 109 key var eaxAnalyzer = eaxMdService.edit(109); expressBox.setSource(eaxAnalyzer);
After executing the example the express report with the 109 key opens in the edit mode. The EaxOpened event occurs as a result, and key of the opened express report is output to the browser console:
Key of the current express report: 108
Key of opened express report: 109
See also: