Click or drag to resize

ApplicationopenDocument Method

Open an analysis document instance specified by the application. The Application.onOpened event will fire when the document is loaded. Multiple documents can be opened for a single application. When several documents are created for an application these documents will automatically be linked together.

Namespace:  spotfire.webPlayer
Assembly:  ~/GetJavaScriptApi.ashx?Version=11.8
function openDocument(elementId, initialPage, customizationInfo);


Type: Systemstring
The id of the DOM element in which to display the Web Player. The Web Player will adapt to the size of this element.
Type: SystemObject
Optional. Specifies the initial page when opening the analysis. Either page index (integer, zero based) or page title (string) can be used. If not set, the active page of the saved analysis will be used. This value will override the parameters used when creating the application.
Type: spotfire.webPlayerCustomization
Optional. Instance of the spotfire.webPlayer.Customization class. When set it will override customization set on the application.

Return Value

Type: Document
An instance of the Document. The API methods on the document can not be used until the onOpened event is fired for this instance.
Version Information

Supported in: 11.8, 11.7, 11.6, 11.5, 11.4, 11.3, 11.2, 11.1, 11.0, 10.10, 7.11
See Also