Show contents 

Working with Common Classes > Classes > WelcomeScreen > WelcomeScreen.addLastDocument

WelcomeScreen.addLastDocument

Syntax

addLastDocument(document:Object, type:PP.Ui.WelcomeScreen.ToolType, data:Object, updateItemsSize:Boolean);

Parameters

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.

Description

The addLastDocument method adds an element to the list of last opened objects in the welcome screen.

Example

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:

WelcomeScreen