(本文档仅供参考)
问题
...
因客户是通过第三方系统调用Smartbi的,目前v8.5、v9.5版本中自助仪表盘是否支持集成?
解决方案
...
自助仪表盘目前支持通过openresource的方式在第三方中打开。V9及以下版本暂不支持以createresource的方式新建Smartbi资源。如需调用新建自助仪表盘可通过如下方式:
方式1:
...
代码块 |
---|
http:// |
...
10. |
...
10. |
...
202. |
...
10: |
...
10500/smartbi/smartbix/?integrated=true&showheader=false&l=zh_CN&nodeid=DEFAULT_TREENODE#/dashboard |
...
参考此文档通过url的方式新建,但是如果没有做单点登录的话,需要传递登录信息,由于此种方式是不允许传参的,因此若没有做登录的话,此方式不合适,需要用方式2或者方式3;
...
方式2:
...
①通过login.jsp的方式
代码块 |
---|
http://10.10.202. |
...
10: |
...
10500/smartbi/vision/login.jsp?user=admin&password=admin&surl=%2Fsmartbi%2Fsmartbix%2F%3Fintegrated%3Dtrue%26showheader%3Dfalse%26l%3Dzh_CN%26nodeid%3DDEFAULT_TREENODE%23%2Fdashboard |
...
方案3:
...
②第三方通过token登录smartbi时,需要通过targetPath参数传递跳转链接,其中targetPath里面的url如果也有参数,需要使用URL编码,示例url如下:
代码块 |
---|
http://10.10.202.10:10500/smartbi/smartbix/?isLargeScreen%3Dtrue%26isNewWindows%3Dtrue%26datasetid%3DI8a8aef9a017ec7e5c7e59623017ec7e5e4410006%23%2Fdashboard |
其中令牌登录的情况下,跳转的新建仪表盘的链接有两种方式:
直接跳转的仪表盘的链接
代码块 |
---|
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> |
...
...
Viewtracker |
---|