Defining paths in Javascript API in TIBCO Cloud Spotfire
book
Article ID: KB0081763
calendar_today
Updated On:
Products
Versions
Spotfire Web Player
All supported versions
Description
Users are finding that using Javascript API code to embed visualizations in other web pages is not working after migrating to TIBCO Cloud Spotfire. This is due to the way that Library paths are generated in the new TIBCO Cloud environment.
Environment
Product: TIBCO Cloud Spotfire Web Player Service
Version: All supported versions
OS: All supported Operating Systems
Resolution
When specifying the path to the analysis file in your Javascript API .html code you cannot simply use the Display Name for the path, such as:
var c_analysisPath = /Users/User Name/userid/Test/d3
Open the analysis file in a browser to see the actual name for the folders in the path:
var c_analysisPath = /Users/5ojj6tdfip5ql4agdtym4fpex6hgnoe6/userid/Test/d3
Update the analysisPath to use the internal folder names to resolve this issue.
Issue/Introduction
Defining the URL path to an analysis file in TIBCO Cloud Spotfire using Javascript API