Hi,
We have an application to enter new records and keep them forever – meaning no delete allowed, either from the Delete button from the toolbar or from the delete key in list view.
Anyone done this?
Thanks,
Joe Trent
Hi,
We have an application to enter new records and keep them forever – meaning no delete allowed, either from the Delete button from the toolbar or from the delete key in list view.
Anyone done this?
Thanks,
Joe Trent
You could create a Method Directive on Update to raise an exception for deleting a record or a Data Directive on the UD table for the same.
Was searching for something else and this caught my eye. I would think the best way to do this would be to use Service Security and block the Delete method. No BPM required.
You can remove the delete button from the toolbar I can dig up how to do this if you want I think I have an example somewhere.
I have experienced the same issue, in the end I started populating a UD table with who deleted PO releases, when, and what the data was they deleted.
I had to do this to prove that someone was deleting lines, then a BPM on the pre-processing method, when the rowed is D.
@danbedwards, posted this code snip-it on a similar question I had about hiding the search button. Dan might know quickly what the delete control is named. Is there is a list on toolbar control names somewhere, or an easy way to figure them out?
baseToolbarsManager.Tools["PrimarySearchTool"].SharedProps.Visible=false;
You will need to add this using statement too:
using Infragistics.Win.UltraWinToolbars;
For the delete toolbar item it would be DeleteTool. I will follow-up in a bit and post how to retrieve all properties. For the questions in this topic I would recommend taking a look at Service Security (what was process security in E9). This works great for preventing deletes and no coding required.