七月下旬更新速递丨 任务中心上线,福利加倍!技术干货持续放送

更新焦点: 重磅推出「任务中心」! 完成多样化任务,轻松赚取麦豆!技术分享、AI学习、实用素材持续上新,点击标题立即探索!

任务版块全新登场!多个任务等你完成,麦豆轻松拿,福利享不停!

>> 立即前往任务中心,开启你的成长之旅! <<

二、实战技巧分享

报表合计不用愁!全场景报表合计一键搞定指南》→从几个场景出发,带大家全方位了解如何在各类报表中实现合计。

数据轻松入库,高效分析即刻开启!》→详细介绍在 Smartbi 中将数据导入数据库的几种主要途径。

三、开发技能突破

第三方系统集成Smartbi资源→演示一些入门的前端集成示例,帮助快速了解如何进行前端集成。

AI每日一学

什么是训练集?什么是验证集?什么是测试集?》→ 讲解如何用三大数据集为AI打造"训练-调试-终测"的全流程闭环

Manus与其他AI智能体产品有什么区别?》→ AI界真·“实干家”Manus上线!告别“嘴炮”AI,围观智能体如何“动手”逆天改命!速戳

五、资源更新

浅色系质感背景图》→百搭质感背景,看见即呼吸,质感如微风。

六、直播上线

如何制作性能最佳的报表解锁性能最佳报表的实践技巧

麦粉社区
>
帖子详情

组件明细表导出功能用宏实现关闭

数据准备 发表于 2024-12-12 13:14
发表于 2024-12-12 13:14:40

使用明细表有导出功能,如何用宏控制导出功能的隐藏或开启

发表于 2024-12-12 13:14:41
需要隐藏的地方写 =‘none’ ,我这个是正好不隐藏导出,其他都隐藏。
你反过来就行。
不需要隐藏的菜单可以不写代码,或者写=‘’;
宏代码左下角的禁用选框,可以启用或禁用。
34211675a78aef00e0.png
function main(simpleReport, simpleReportContext) {
    //debugger;
    //"none"表示为隐藏,""表示为显示
    setTimeout(function() {
        simpleReport.btnBackward.parentNode.style.display = "none"; //后退
        simpleReport.btnForward.parentNode.style.display = "none"; //前进
        simpleReport.btnRefresh.parentNode.style.display = ""; //刷新
        simpleReport.btnSave.parentNode.style.display = "none"; //保存
        simpleReport.btnSaveAs.parentNode.style.display = "none"; //另存为
        simpleReport.btnMyFavorite.parentNode.style.display = "none"; //隐藏收藏夹
        simpleReport.btnChart.parentNode.style.display = "none"; //图形
        simpleReport.btnView.parentNode.style.display = "none"; //视图
        simpleReport.btnSelectField.parentNode.style.display = "none"; //添加/删除字段
        simpleReport.btnQueryViewSetting.parentNode.style.display = "none"; //报表设置
        simpleReport.btnReportParam.parentNode.style.display = "none"; //参数设置
        simpleReport.btnExport.parentNode.style.display = ""; //导出
        simpleReport.btnPrint.parentNode.style.display = "none"; //打印

        if (simpleReport.btnTimeConsuming) {
            simpleReport.btnTimeConsuming.parentNode.style.display = "none"; //耗时分析
        }
        if (simpleReport.elem_btnSetUserParam) {
            simpleReport.elem_btnSetUserParam.parentNode.style.display = "none"; //个人参数
        }
        simpleReport.btnEditDataset.parentNode.style.display = "none"; //定位数据集
        if (simpleReport.elemCreateInsightInQuery) {
            simpleReport.elemCreateInsightInQuery.parentNode.style.display = "none"; //透视分析
        }
    }, 100)
}

回复

使用道具 举报

发表于 2024-12-12 15:57:13
回复

使用道具 举报

发表于 2025-4-10 15:12:47
学习了
回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

8回帖数 0关注人数 1179浏览人数
最后回复于:2025-4-10 15:12
快速回复 返回顶部 返回列表