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=14.4
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'
RemarksThis API is obsolete. Use 'http://myserver.spotfire.com/spotfire/js-api/oauth.js' instead.
Version Information
Supported in: 14.4, 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also