disable options for specific users using boolean
catiamatos1991
Member Posts: 158
Hi everyone, I'm using nav 2016 and I need in sales lines to prevent some specific user to delete a sales line record (right button of mouse and delete line ctrl + del)
And I need also to prevent this user of change a item quantity if its unity of meause is different of "kg" (pound).
I want to use a boolean var in the enable check system, but my doubt is how to do this in the delete (in a sales line list of item the user cant delete a specific line for example)
And I need also to prevent this user of change a item quantity if its unity of meause is different of "kg" (pound).
I want to use a boolean var in the enable check system, but my doubt is how to do this in the delete (in a sales line list of item the user cant delete a specific line for example)
0
Answers
-
[Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
I'd rethink the requirments. Not worth coding imho as 1) there will be simple workarounds possible, and/or 2) your system will become less user friendly (up to the point of being a pain in the a... in some cases) , and/or 3) you will have unexpected side effects.
What if user who is not allowed acccidentally adds a new line to Sales Order? It's pretty easy to do and he/she won't be allowed to remove the lines they added. Thats' not very good user experience. and potentially create more support burden.catiamatos1991 wrote: »...and I need in sales lines to prevent some specific user to delete a sales line record (right button of mouse and delete line ctrl + del)
Are you going to prevent user from changing a unit of measure too? If not how they supposed to setup sales line? If you prevent changes only when unit of measue is kg then you run into scenarios where users are not allowed to change their own lines if they accidentally selected kg as UoM. If you not restrict change of UoM they will be able to clear it, amend Quantity, and bring back kg in Uom.catiamatos1991 wrote: »And I need also to prevent this user of change a item quantity if its unity of meause is different of "kg" (pound).
Coding such restrictions is not worth the time spend on it and further support. Better spend this time with users training them and explaining reasons why it is important to not to amend Quantity or delete lines in certain scenarios, and setup Change Log to catch those who don't obey the rules...Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K 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
- 324 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
