【问题标题】:Remove Oracle Apex Interactive Grid row actions删除 Oracle Apex 交互式网格行操作
【发布时间】:2019-04-22 21:15:21
【问题描述】:

在 Oracle APEX 中,如何删除交互式网格行操作中的不同操作?

我想从行操作和选择操作菜单中删除删除或添加行的功能。

【问题讨论】:

    标签: oracle-apex


    【解决方案1】:

    区域设置、高级、静态 ID:emp

    页面设置、JavaScript、页面加载时执行

    $(window).on("load", function() {
        var actions = apex.region("emp").widget().interactiveGrid("getActions");
        actions.remove("selection-add-row");
        actions.remove("selection-duplicate");
        actions.remove("selection-fill"); 
        actions.remove("selection-clear"); 
        actions.remove("selection-delete");
        actions.remove("selection-copy-down");
        actions.remove("selection-copy");
        actions.remove("selection-refresh"); 
        actions.remove("selection-revert"); 
        actions.remove("single-row-view");
        actions.remove("row-add-row");
        actions.remove("row-duplicate");
        actions.remove("row-delete"); 
        actions.remove("row-refresh"); 
        actions.remove("row-revert"); 
    });
    

    您可以将“emp”更改为您喜欢的任何内容,同时更改静态 ID 和 javascript。删除您想保留的行。

    【讨论】:

      【解决方案2】:

      您可以使用actions.hide("{action_id}")actions.show("{action_id}") 隐藏和显示行操作。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-02-22
        • 1970-01-01
        • 2021-09-17
        • 2019-01-26
        • 1970-01-01
        • 1970-01-01
        • 2023-01-11
        • 1970-01-01
        相关资源
        最近更新 更多