(本文档仅供参考)
问题说明:
期望在bi中实现这样一张报表,用于展现当前smartbi中已创建的报表资源,并且可以支持点击跳转到具体的报表资源。
解决方案:
步骤一:
创建数据模型,查询知识库t_
...
restree表获取当前smartbi中已存在的报表明细数据,参考sql如下。
代码块 | ||
---|---|---|
| ||
select
c_resid 资源ia,
c_resname 资源名称,
c_resalias 资源别名,
case
when c_restype = 'SPREADSHEET_REPORT' then '电子表格'
when c_restype = 'COMBINED_QUERY' then '即席查询'
when c_restype = 'INSIGHT' then '透视分析'
when c_restype = 'SMARTBIX_PAGE' then '大屏可视化'
when c_restype = 'DAQ_IMPORTCONFIG' then 'excel导入模板'
when c_restype = 'WEB_SPREADSHEET_REPORT' then 'web电子表格'
end 资源类型
from
t_restree
where
c_restype in (
'SPREADSHEET_REPORT',
'COMBINED_QUERY',
'INSIGHT',
'SMARTBIX_PAGE',
'DAQ_IMPORTCONFIG',
'WEB_SPREADSHEET_REPORT'
)
|
步骤二:
基于创建的数据模型,新建大屏可视化看板,在看板中使用明细表组件展示数据。
步骤三:添加配置跳转规则,参考图中①、②、③、④,配置完成后保存报表即可
其中③改成项目实际smartbi访问地址: http://ip:port/smartbi/vision/openresource.jsp?resid=${resid}