Role-Based Column Visibility
-
Role-Based Column Visibility
Posted by David Wiser on February 16, 2018 at 7:36 pm-
My boss has asked if we can hide certain columns on the physical inventory journal for certain roles.Ā I know that I can open the role in configuration mode and hide the columns, but (unless I disable personalizations for the role) the user can just “Choose Columns” and add then hidden columns back to their page.Ā Is there a way to hide certain columns based on roles which would also prevent individual members ofĀ the role from adding them back?Ā I don’t want to delete them from the page completely since other roles do need to see the columns.
——————————
Dave Wiser
Controller
Beckwith & Kuffel
Seattle WA
—————————— -
Franz Kalchmair
MemberFebruary 18, 2018 at 2:56 PM
you could declare a global bool variable, e.g. RoleVisible. set that variable to the Visible property of the fields you want to display dynamically by role/profile.add then following to onopenpage trigger:
// UserPers / Record / User Personalisation
UserPers.GET(USERSECURITYID);
RoleVisible := UserPers.”Profile ID” = ‘PURCHASER’; // or what ever you want to docolumns can then be seen in the “choose column” window, but are not shown in the column list if RoleVisible=false.
——————————
Franz Kalchmair
Microsoft MVP
Senior Consultant
Vienna, Austria, Europe
——————————
——————————————- -
David Singleton
MemberFebruary 19, 2018 at 5:06 AM
Have you looked at Easy Security.it probably does what you need.
http://www.mergetool.com/easysecurity.html
——————————
David Singleton
Go Live International
SQL Perform Navision Performance Consultant
dsingleton@go-live.us
——————————
——————————————- -
Mathew Ealy
MemberFebruary 19, 2018 at 8:35 AM
Easy Security is a great tool for this need.Once you start hiding fields it becomes a slippery slope and having a tool that allows field level security like Easy Security becomes a god send.——————————
Mathew Ealy
Nav Support Specialist
Rentokil N. America
Reading PA
——————————
——————————————- -
Kris Ruyeras
MemberFebruary 19, 2018 at 7:08 PM
Hi Dave,You could look at the Application Area Setup / ApplicationArea option for Dynamics NAV. Under Properties of the field you are trying to ‘hide’, you can assign it with ApplicationArea and can be user specific who gets to see the field/column or not.
——————————
Kristoffer Ruyeras
Director of Business Technology
Seattle, WA
——————————
——————————————- -
Naveen Jain
MemberFebruary 19, 2018 at 7:17 PM
Dave,First modify the user roles as needed and then From the USER permissions remove insert/delete/modify permission for TableDataĀ 2000000080Ā Page Data Personalization

——————————
Naveen Jain
Director of IT
Symbex Companies
Santa Fe Springs CA
——————————
——————————————-
David Wiser replied 7 years, 8 months ago 1 Member · 0 Replies -
-
0 Replies
Sorry, there were no replies found.
The discussion ‘Role-Based Column Visibility’ is closed to new replies.