addLastDocument(document:Object, type:PP.Ui.WelcomeScreen.ToolType, data:Object, updateItemsSize:Boolean);
document. Document to be displayed.
type. Type of the tool, in which document is opened.
data. Object to be opened on selecting this element.
updateItemsSize. Indicates if size is refreshed after adding.
The addLastDocument method adds an element to the list of last opened objects in the welcome screen.
To execute the example, the HTML page must contain the WelcomeScreen component named wscreen (see Example of Creating the WelcomeScreen Component). Add a record to the last opened documents:
wscreen.addLastDocument("Test",PP.Ui.WelcomeScreen.ToolType.OLAP_ANALYSIS,"insertObjectHere");
See also: