Field Level Permissions.

Styvie
Member Posts: 77
I have found some other references to this topic here, but none that really help.
I have implemented field level security, whereby fields can be marked as "Viewable" and "Modifyable".
The modifyable is working 100% using the GlobalModify trigger in Codeunit 1 and the change log functionality.
The viewable I am struggling with. I have written all the code to hide the fields in certain list forms.
I can hide the fields no problem from the users - I used OnOpenForm, but they can re-show the fields using the "Show" function. I can get around this by hiding the fields on another trigger, but no trigger runs after the "Show" window closes. I can use "OnAfterGetRecord" or "OnAfterGetCurrentRecord" to hide the fields, but this is not efficient, as many many people are opening these forms, and just want to update the visibility once, or as many times as they try and show the field. Is there any other way of handling this ? There is sensitive information in certain fields, and I need a way of hiding this, without creating multiple forms for various user groups.
We are diabling Zoom for the users who have restricted functionality.
I have found some information on Google about Security management for navision in this link. They have not responded to my e-mails requesting some more information
www.avfconsulting.com/newsletter/htm/january2004.htm
Any help would be appreciated.
I have implemented field level security, whereby fields can be marked as "Viewable" and "Modifyable".
The modifyable is working 100% using the GlobalModify trigger in Codeunit 1 and the change log functionality.
The viewable I am struggling with. I have written all the code to hide the fields in certain list forms.
I can hide the fields no problem from the users - I used OnOpenForm, but they can re-show the fields using the "Show" function. I can get around this by hiding the fields on another trigger, but no trigger runs after the "Show" window closes. I can use "OnAfterGetRecord" or "OnAfterGetCurrentRecord" to hide the fields, but this is not efficient, as many many people are opening these forms, and just want to update the visibility once, or as many times as they try and show the field. Is there any other way of handling this ? There is sensitive information in certain fields, and I need a way of hiding this, without creating multiple forms for various user groups.
We are diabling Zoom for the users who have restricted functionality.
I have found some information on Google about Security management for navision in this link. They have not responded to my e-mails requesting some more information
www.avfconsulting.com/newsletter/htm/january2004.htm
Any help would be appreciated.
0
Comments
-
Have you seen the OnFormat Trigger of a column on a list form?
I entered the code:Text:='********';
in the:Sell-to Customer Name - OnFormat(VAR Text : Text[1024];)
trigger of form 143 and all the recs show the asterics.
Let them show/hide the field but not to see the sensitive info...
The code doesn't mess with the data of the db.
Does this help?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