页面树结构
转至元数据结尾
转至元数据起始

正在查看旧版本。 查看 当前版本.

与当前比较 查看页面历史

版本 1 下一个 »

(本文档仅供参考)

问题说明:

期望在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'
    )



  • 无标签