addLastDocuments(documents:array, reInit:Boolean);
documents. Array of documents to be displayed in the welcome screen.
reInit. Indicates if the list of last documents is rerendered. If the True value is set, the list is reset and rerendered only with added elements.
The addLastDocuments method adds 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:
ldocs = [{ Content: "Doc1", Type: PP.Ui.WelcomeScreen.ToolType.OLAP_ANALYSIS, Data: "none" },{ Content: "Doc2", Type: PP.Ui.WelcomeScreen.ToolType.OLAP_ANALYSIS, Data: "none" }]; // Add documents wscreen.addLastDocuments(ldocs);
See also: