(本文档仅供参考)
问题
因客户是通过第三方系统调用Smartbi的,目前v8.5、v9.5版本中自助仪表盘是否支持集成?
解决方案
自助仪表盘目前支持通过openresource的方式在第三方中打开。V9及以下版本暂不支持以createresource的方式新建Smartbi资源。如需调用新建自助仪表盘可通过如下方式:
方案1:
参考此文档通过url的方式新建,但是如果没有做单点登录的话,需要传递登录信息,由于此种方式是不允许传参的,因此若没有做登录的话,此方式不合适,需要用方案2或者方案3;
方案2:
②第三方通过token登录smartbi时,需要通过targetPath参数传递跳转链接,其中targetPath里面的url如果也有参数,需要使用URL编码,如下:
targetPath=/smartbi/smartbix/?isLargeScreen%3Dtrue%26isNewWindows%3Dtrue%26datasetid%3DI8a8aef9a017ec7e5c7e59623017ec7e5e4410006%23%2Fdashboard
方案3:
通过post方式传递用户信息等然后跳转到 surl
代码块 | ||||
---|---|---|---|---|
| ||||
<form action="http://10.10.202.17:18550/smartbi/vision/login.jsp" method="post"> <input type="text" name="user" value="admin" /> <input type="text" name="password" value="admin" /> <input type="text" name="surl" value="/smartbi/smartbix/?integrated=true&showheader=false&l=zh_CN&nodeid=DEFAULT_TREENODE#/dashboard" /> <input type="submit" /> </form> |
Viewtracker |
---|