禁止在禁用的视图上更新便笺/文件 [英] Prevent update of note/files on disabled views

查看:32
本文介绍了禁止在禁用的视图上更新便笺/文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到,当网格不允许更新,插入或删除时,便笺和文件可以在网格上插入/更新/删除(假定形式相同)。有没有办法关闭此功能?我正在编写一个自定义页面,并希望防止用户修改任何内容,包括注释和文件。

I noticed that notes and files can be inserted/updated/deleted on grids (assume forms the same) when the grid does not allow for update, insert, or delete. Is there a way to turn this off? I am writing a custom page and want to prevent a user from modifying anything including notes and files.

我的网格包含以下内容:

My grid contains the following:

MyGrid.AllowInsert = false;
MyGrid.AllowUpdate = false;
MyGrid.AllowDelete = false;

我想防止这种情况吗?我可以在自定义屏幕的aspx页中添加一些内容来防止注释/文件编辑吗?

Anything I am missing to prevent this? Is there something I can add in the aspx page of my custom screen to prevent note/file edits?

推荐答案

我来晚了参加聚会,但这是我从网格中删除文件和注释列的方法。
我的图形内:

I'm late to the party, but here is how I removed the files and notes columns from my grid. Inside my graph :

[PXRemoveBaseAttribute(typeof(PXNoteAttribute))]
[PXGuid]
public void _(Events.CacheAttached<MyDac.noteID> e) { }

,我在重用已经具有NoteID的MyDac。由于我的屏幕是一个查询,要求禁用所有功能,因此我删除了PXNoteAttribute以禁止编辑文件和注释。

In my case, I was reusing MyDac that already had NoteID. Since my screen was an inquiry where I wanted everything disabled, I removed the PXNoteAttribute to forbid editing files and notes.

这篇关于禁止在禁用的视图上更新便笺/文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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