2015-07-10 19 views
0

使用Web播放器JavaScript API時,我無法獲得要應用於Spotfire 7.0 Web播放器的.Customization屬性。
當我在Spotfire 6.0 Web Player中使用相同的html腳本時,隱藏工具欄和隱藏狀態欄的自定義設置按預期消失(請參見下文)。Spotfire 7.0 Web Player Javascript API自定義問題

任何建議,將不勝感激。

ps。我注意到參數配置塊'SetPage(pageIndex = 2)'的.open參數''也無法在我的7.0網絡播放器中應用,但在6.0上工作。

<!DOCTYPE html> 
 
<html> 
 
<head> 
 
    <title>Dashboard</title> 
 
    <script type="text/javascript" src="./GetJavaScriptApi.ashx?Version=6.0"></script> 
 
    
 
    <script type="text/javascript"> 
 
    window.onload = function() 
 
    { 
 
    var wpCustomization = new spotfire.webPlayer.Customization(); 
 
    wpCustomization.showToolBar = false; 
 
    wpCustomization.showStatusBar = false; 
 
    webPlayer1 = new spotfire.webPlayer.Application("http://spf2/spotfireweb/", wpCustomization); 
 
    
 
    webPlayer1.open('/Information Model/Analyses/Operations/Operations Management Dashboard/Dashboard Mockup','Dashboard','SetPage(pageIndex = 2);'); 
 
    } 
 
</script> 
 
</head> 
 
<body > 
 
    <div id="Dashboard" ></div> 
 
</body> 
 
</html>

回答