如何无法从子网格创建新的记录按钮 [英] How to unable create a new record button from sub grid

查看:111
本文介绍了如何无法从子网格创建新的记录按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想防止从我的电子邮件实体子网格(这是一个自定义视图/子网格)创建新记录,我尝试使用功能区工作台->子网格功能区对其进行更改,但是我有很多视图实体。

I want to prevent create a new record from my sub-grid of email entity (it's a custom view/subgrid), I tried to change it using ribbon workbench -> sub-grid ribbon, but I have many views to my Entity.

我怎么知道我正在使用正确的 addnew 按钮,而不是不需要的子网格或错误操作删除我所有子网格中的 addnew 按钮?

How do I know that I'm working on the right addnew button and not on unwanted subgrid or by mistake deleting the addnew button from all of my sub-grids?

推荐答案

从功能区工作台或直接在ribbondiff xml中,可以在自定义实体功能区时在该特定实体的所有子网格中隐藏(+)添加新按钮。与所选的自定义视图或任何特定表单无关。

From ribbon workbench or directly in ribbondiff xml, you can hide the (+) Add New button in all subgrids of that particular entity when customizing entity ribbon. It’s nothing to do with selected custom view or any particular form.

确保使用CommandCore AddNewRecordFromSubGridStandard <隐藏新的 +添加新{0} 按钮。其他的 + NEW {0} 按钮用于关联的视图中。

Make sure you hide the + ADD NEW {0} button with CommandCore AddNewRecordFromSubGridStandard. Other one, + NEW{0} button is used within associated view.

隐藏它以便取消隐藏再次。不要删除它。

Hide it so you can Unhide it again. Don’t delete it.

< img src = https://i.stack.imgur.com/x0QUU.png alt =在此处输入图片描述>

如果要针对某些特定情况进行隐藏,那么可能某些不受支持的DOM操作可以将其隐藏在subgrid onload js中。

If you want to hide for some particular scenario, then probably some unsupported DOM manipulation can hide it in subgrid onload js.

这篇关于如何无法从子网格创建新的记录按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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