Products | Versions |
---|---|
Spotfire Analyst | 7.9 and above |
In TIBCO Spotfire versions prior to Spotfire 7.9, TIBCO Spotfire WebPlayer used to convert the analysis URL into encoded format when passing configuration block with the analysis URL. But in versions later than TIBCO Spotfire 7.9, few characters like = { } etc. are not getting encoded when passing configuration block with the analysis URL. As a result, analysis does not open using configuration block.
<!DOCTYPE html> <html> <body> <p>Click the button to encode a URI.</p> <button onclick="myFunction()">Try it</button> <p id="demo"></p> <script> function myFunction() { var uri = "documentProperty=\"value\";SetFilter(tableName=\"Baseball\",columnName=\"ASSISTS\",values=10);"; var res = "http://<server>:<port>/spotfire/wp/ViewAnalysis.aspx?file=/BASEBALL&configurationBlock="+encodeURIComponent(uri); document.getElementById("demo").innerHTML = res; } </script> </body> </html>