How to stop users inserting records on a List Page

Alisha
Member Posts: 217
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!
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
-
-
Yes, it has no effect.0
-
Yes, I want to disable it as I need to control who can insert certain types of records before they get to the card.
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...0 -
The reason for this behavior is that we leave it up to the underlying card to determine capabilities.
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 ******0 -
I do hope that in a subsequent release we get back more control of page layouts so we can really manipulate them as needed. I am all for standards, and I understand the intention to have things work consistently and have the client "decide" how to render a page based on various factors, but the fact is that it's a big limitation. I wonder how useful the new full-screen / kiosk mode for the RTC will even be. Normally that sort of interface would be used for a point of sale or shop-floor terminal (a couple examples anyway). But also, you would normally want to manipulate those interfaces to have large push buttons or very specific layouts. Of course, add-ins provide some flexibility here, but we're still limited if we need to override the way the application renders the page in any fundamental way.Rob Hansen
http://www.epimatic.com0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions