Hi,
I have a list page (type = List), but I don't want users to see or click the button "New". Instead, I want to create my own action that will handle inserting new records (there are some complicated security checkings to do). Any idea how to achive this? I cannot hide the "New" action, and if I turn the list into a Worksheet, I cannot add other Actions...
I've tried putting code to error on the OnNewRecord trigger, but it has no effect.
Thanks!
0
Comments
RIS Plus, LLC
So you're saying they can click this "New" button and you want to disable it?
http://www.BiloBeauty.com
http://www.autismspeaks.org
Edit: I finally managed to solve this once on the card (using a Delayed Insert , not blank values and errors) , but I'm still curious if it's possible to disable the New button...
So in a list without a cardformid defined "insertallowed" works as you would expect - it turns on/off the "new" button.
If you set insertallowed to "no" on the card - the new button will be disabled on the list.
In your scenario this might not be what you would have liked; but you may be able to workaround it - now you know the behavior.
You might have wanted to be able to set InsertAllowed to a variable - and make the list act on it despite of the card's settings
This posting is provided "AS IS" with no warranties, and confers no rights
Troels Bent Hansen
Senior Program Manager
Microsoft Dynamics NAV
****** This posting is provided "AS IS" with no warranties, and confers no rights ******
http://www.epimatic.com