loadDocMd(doc: PP.Exp.EaxDocument, callback);
doc. Document to be loaded to an express report.
callback. Callback function.
The loadDocMd method loads a document to the service used for working with an express report.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Create a new express report document and load it to the service to work with it:
// Get service for working with express report var eaxMdService = expressBox.getService(); // Create a new express report document var eaxDocument = eaxMdService.createDocument(0, "New Document"); // Determine callback function var callback = function (sender, args) { console.log("Express report document is loaded to server with the key " + args.Args.getKey()); }; // Load document to service for working with express report eaxMdService.loadDocMd(eaxDocument, PP.Delegate(callback, this, eaxDocument));
After executing the example a new document is created and loaded to the service for working with an express report. Key of the new document is output to the browser console:
Document of express report with the 2695 key is loaded to the service
See also: