最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Can i disappear the save report button from action menu in interactive report in oracle apex? - Stack Overflow

programmeradmin2浏览0评论

I have an interactive gride page. i want to hide SAVE button in action menu to prevent user to save report as default or primary report i have tried to do that using page item be hidden contain value = Y and make dynamic action on it execute JavaScript code. this is the code

function(config) {
  config.initActions = function( actions ) {
    $(() => {
      if ( $v("P3_NEW") === "Y" ) {
        apex.region("todo").widget().interactiveGrid("getActions").hide("save-report");
        apex.region("todo").widget().interactiveGrid("getActions").hide("show-save-report-as-dialog");
        apex.region("todo").widget().interactiveGrid("getActions").hide("show-edit-report-dialog");
      }
    });
  }
  return config;
}```
Can anyone help me to do this in interactive gride and also in interactive report?

I have an interactive gride page. i want to hide SAVE button in action menu to prevent user to save report as default or primary report i have tried to do that using page item be hidden contain value = Y and make dynamic action on it execute JavaScript code. this is the code

function(config) {
  config.initActions = function( actions ) {
    $(() => {
      if ( $v("P3_NEW") === "Y" ) {
        apex.region("todo").widget().interactiveGrid("getActions").hide("save-report");
        apex.region("todo").widget().interactiveGrid("getActions").hide("show-save-report-as-dialog");
        apex.region("todo").widget().interactiveGrid("getActions").hide("show-edit-report-dialog");
      }
    });
  }
  return config;
}```
Can anyone help me to do this in interactive gride and also in interactive report?
Share Improve this question asked Feb 16 at 20:28 Retal OmarRetal Omar 393 silver badges13 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

... prevent user to save report as default or primary report

Lucky you, you don't have to do anything. Nobody, but developer (you) can save the default report layout. Users can save their own versions of it (and use them whenever they want), but default is all yours.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论