DocumentOdId: String
The DocumentOdId method contains identifier of the express report document.
Property value can be set from JSON or using the getDocumentOdid method, it is returned using the getDocumentOdId method.
This property contains a string identifier that looks as {session_identifier}!{object_identifier} for the express report document.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Get identifier of the express report document and document data:
// Get express report document var eaxDocument = expressBox.getSource(); // Get identifier of the express report document console.log("Document identifier: " + eaxDocument.getDocumentOdId().id); // Get info on the express report document var state = eaxDocument.getDocumentMetadata(); console.log("Express report has been changed: " + state.dirty); console.log("Document sheets count: " + state.sheets.its.it.length);
After executing the example the browser consolw displays identifier of the express report document, information on express report change, and the number of sheets in the document:
Document identifier: OJFBNIEELMOBEOAEOMLPNJALMHBFIGBEMJDJEPHGFGEHKOGK!M!S!EJICHGAFELMOBEOAEDPKOEAAPFNKPBFKEPJBGAKIIPABJFLFA
Express report was changed: False
Sheet count in the document: 1.
See also: