Sage SalesLogix
  • Contact Us
  • Sage North America
800-643-6400
Welcome Twitter Facebook LinkedIn
Community Home Blogs Share Ideas Search Request Access Resources
Reply
Tuned Listener
pstockin
Posts: 9
Registered: 12-05-2009

Is it possible to Hide a field based on Security role?

I would like to hide a field, such as Status, based on a role set in Security Explorer. How should I go about implementing this, assuming it is possible? The code probably would go in the Load Actions for the form in question, but not sure on what objects in C# I need to pull in to check the logged in user's role.

Please use plain text.
Bronze Elite Contributor
apfingstl
Posts: 898
Registered: 04-08-2009

Re: Is it possible to Hide a field based on Security role?

I am not sure with the security roles can do this.

But have you checked out the possibilities of field level security?

This would also hide the fields in gtroups as it goes directly into the provider.

 

Alexander

Please use plain text.
Tuned Listener
pstockin
Posts: 9
Registered: 12-05-2009

Re: Is it possible to Hide a field based on Security role?

How would I go about that on the web client? With other web platforms, it's a cinch to grab the current user object and rifle through it to retrieve settings like role and then run it through some if/thens and such. Is there a reference article or demo somewhere that I can review?
Please use plain text.
Bronze Super Contributor
garnold
Posts: 204
Registered: 03-10-2009

Re: Is it possible to Hide a field based on Security role?

Check out this code, should be what you are looking for.

 

http://sites.google.com/site/genesprojects/code/workingwithroles


Sr. Sales Engineer
Gene Arnold
Please use plain text.