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=11.8
Syntaxfunction(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.
RemarksThis API is loaded via 'http://myserver.spotfire.com/spotfire/js-api/loader.js'
Version Information
Supported in: 11.8, 11.7, 11.6, 11.5, 11.4, 11.3, 11.2, 11.1, 11.0, 10.10
See Also