Working with Common Classes > Classes > WelcomeScreen > WelcomeScreen.addLastDocument
addLastDocument(document:Object, type:PP.Ui.WelcomeScreen.ToolType, data:Object, updateItemsSize:Boolean);
document. The document that will be displayed.
type. Type of the tool, in which the document is opened.
data. The object to be opened on selecting this element.
updateItemsSize. Indicates whether 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: