【发布时间】:2019-04-22 21:15:21
【问题描述】:
在 Oracle APEX 中,如何删除交互式网格行操作中的不同操作?
我想从行操作和选择操作菜单中删除删除或添加行的功能。
【问题讨论】:
标签: oracle-apex
在 Oracle APEX 中,如何删除交互式网格行操作中的不同操作?
我想从行操作和选择操作菜单中删除删除或添加行的功能。
【问题讨论】:
标签: oracle-apex
区域设置、高级、静态 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。删除您想保留的行。
【讨论】:
您可以使用actions.hide("{action_id}") 和actions.show("{action_id}") 隐藏和显示行操作。
【讨论】: