Click or drag to resize

createApplication Function

Initializes a new instance of class Application. This method will prompt the user with a login dialog if needed.

Namespace:  spotfire.webPlayer
Assembly:  ~/GetJavaScriptApi.ashx?Version=10.0
Syntax
JavaScript
function(webPlayerServerRootUrl, customizationInfo, analysisPath, parameters, reloadInstances, version, onReadyCallback, onCreateLoginElement);

Parameters

webPlayerServerRootUrl
Type: Systemstring
The URL to the Web Player server (e.g. 'http://myserver.spotfire.com/spotfire/wp/' or '../spotfire/wp/').
customizationInfo
Type: SystemObject
Settings object containing all settings that will be transferred to the Customization object. The available properties will vary depending on the version selected.
analysisPath
Type: Systemstring
The path in the library to the analysis to open.
parameters
Type: Systemstring
Optional. Load parameters for the analysis (bookmark names, Information Link parameters, etc.). Example: 'Parameters.Param = {val1, "Val 2"}; SetPage(pageIndex = 1); ApplyBookmark(bookmarkName="All");'.
reloadInstances
Type: SystemBoolean
Optional. If true, the javascript API will try to reuse server side instances of loaded documents.
version
Type: Systemstring
The version of the API to open, e.g. 7.14.
onReadyCallback
Type: spotfire.webPlayeronApplicationLoadedCallback
Callback called when the application has loaded. Status will be OK when the application was loaded successfully.
onCreateLoginElement
Type: spotfire.webPlayeronCreateLoginElementCallback
Optional. Create a clickable DOM element for launching the login window.
Remarks
This API is loaded via 'http://myserver.spotfire.com/spotfire/js-api/loader.js'
Version Information

Supported in: 10.0, 7.14
See Also