(本文档仅供参考)
因客户是通过第三方系统调用Smartbi的,目前v8.5、v9.5版本中自助仪表盘是否支持集成?
自助仪表盘目前支持通过openresource的方式在第三方中打开。V9及以下版本暂不支持以createresource的方式新建Smartbi资源。如需调用新建自助仪表盘可通过如下方式:
方式1:
参考此文档通过url的方式新建,但是如果没有做单点登录的话,需要传递登录信息,由于此种方式是不允许传参的,因此若没有做登录的话,此方式不合适,需要用方式2或者方式3;
方式2:
②第三方通过token登录smartbi时,需要通过targetPath参数传递跳转链接,其中targetPath里面的url如果也有参数,需要使用URL编码,示例url如下:
其中令牌登录的情况下,跳转的新建仪表盘的链接有两种方式:
直接跳转的仪表盘的链接
targetPath=/smartbi/smartbix/?isLargeScreen=true&isNewWindows=true&datasetid=I8a8aef9a017ec7e5c7e59623017ec7e5e4410006&Fdashboard
跳转到createresource.jsp
targetPath=/smartbi/smartbix/?isLargeScreen=true&isNewWindows=true&datasetid=I8a8aef9a017ec7e5c7e59623017ec7e5e4410006#/dashboard
其中跳转到createresource.jsp的参数名中,数据集id是sourceid,大屏可视化变为subtype=big,多语言变为locale=zh_CN
方式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> |