Disable Show/Hide Column mouse function

Prototype1
Member Posts: 37
Hi all,
I have use the CurrForm.Editable := False code to lock the Sales Quote Form to our Reps (based on User Setup). How do I disable the Show/Hide column Function available with right click on the mouse?....I want to hide some of the cost fields on the sales lines from them and this function allows them to change the screen to show this information.
Thanks
Tim
I have use the CurrForm.Editable := False code to lock the Sales Quote Form to our Reps (based on User Setup). How do I disable the Show/Hide column Function available with right click on the mouse?....I want to hide some of the cost fields on the sales lines from them and this function allows them to change the screen to show this information.
Thanks
Tim
0
Comments
-
Hi Tim,
You could add a field to the user setup table and in the OnFormat triggers of each field add this codeCurrForm.FieldName.VISIBLE := UserSetup."Allow View Data";
Hope this helps
Albert0 -
Thanks for the reply,
I put similar code in OnOpenForm of Form 95, and this blanked the required column from display, but the users can still put it back using the show coulmn mouse function.
Any other thoughts?
Thanks
Tim0 -
You're basically talking about field level security, which NAV does not support. There are add-ons you can purchase, but it's not too hard to develop yourself if you just want it for a few fields.
Change the text in the OnFormat trigger in the field of the form to '***' if they don't have permission.
Disable the Zoom feature in security.
Make sure it's not editable.
They'll still be able to show the column, but won't be able to see the value.0 -
OK Thanks. I'll give it a try.0
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