操作菜单交互式网格 [英] Actions Menu Interactive Grid

查看:61
本文介绍了操作菜单交互式网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法从交互式网格的操作菜单中删除图表"?

Is there any way to remove 'Chart' from Actions Menu in an Interactive Grid?

推荐答案

所以我发布了一个简短的回答,老实说,它应该是一条评论,其中包含指向 https://hardlikesoftware.com/weblog/2017/01/24/how-to-hack-apex-interactive-grid-part-2/

So I posted a short answer that should have honestly probably been a comment with a link to https://hardlikesoftware.com/weblog/2017/01/24/how-to-hack-apex-interactive-grid-part-2/

然后我有一些时间并决定尝试实际执行此操作并获得了解决方案,这要归功于 https://community.oracle.com/thread/4324589 他们还进一步参考了 https://community.oracle.com/thread/4324589/community.oracle.com/thread/4319050

Then I had some time and decided to try to actually execute this and got to a solution thanks to https://community.oracle.com/thread/4324589 where they also further reference https://community.oracle.com/thread/4319050

所以你知道去哪里了解关于这个主题的更多信息.

So you know where to go for more information on this topic.

至于您的解决方案:

进入IG的属性,在Advanced下找到Javascript Initialization Code.然后粘贴以下代码:

Go into the Attributes of the IG, Find Javascript Initialization Code under Advanced. Then paste the following code:

function(config) {

    var toolbarData = $.apex.interactiveGrid.copyDefaultToolbar();
    config.toolbarData = toolbarData;
    toolbarData.toolbarRemove( "chart-view" );  
    return config;

}

希望这对你有用,对我有用.

Hope this works for you, it worked for me.

回应您询问如何找到要删除的名称.

In response to you asking how to find the name to remove.

嗯,这并不简单.看看它是否在其中一篇文章中提到过.否则,您将不得不搜索 js 文件.

Well thats not exactly simple. See if perhaps its mentioned in one of the posts. Otherwise you will have to search through the js file.

我的做法是,一旦在页面上,我打开控制台并运行 $.apex.interactiveGrid.copyDefaultToolbar();,打开返回的数组,跳转到ToolbarRemove的定义.这打开了 InteractiveGrid.min.js 所以我可以在那里搜索.然后我 Ctrl + F 在那里找到图表".

How I went about it is that once on the page, I opened up the console and ran $.apex.interactiveGrid.copyDefaultToolbar(); , opened up the returned array, and jumped to the definition of ToolbarRemove. This opened up InteractiveGrid.min.js so I could search there. Then I Ctrl + F there to find "chart".

您还可以这样做,而不是盲目搜索,直到您发现这些标签需要被引用以进行翻译.所以如果你去http://translate-apex.com你找到标签的名称,你可以搜索它.对于图表,您可以转到翻译并找到图表项,即 APEX.IG.CHART.然后在 js 中你会发现 APEX.IG.CHART 只出现一次,而不是出现 10 次图表".

What you could also do so you arent just searching blindly until you find it is that these labels need to be referenced for translation. So if you go to http://translate-apex.com And you find what the label is called, you can just search for that. For the chart you could go to the translations and find the Chart item which is APEX.IG.CHART. Then in the js you find APEX.IG.CHART which only occurs once, instead of the 10 times "chart" occurs.

编辑 2:

您询问了闪回对话框.

function(config) {

    var toolbarData = $.apex.interactiveGrid.copyDefaultToolbar();
    config.toolbarData = toolbarData;
    toolbarData.toolbarRemove( "show-flashback-dialog" );  
    return config;

}

这对我有用

这篇关于操作菜单交互式网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆