Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Tuned Listener
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.

Silver Contributor
Posts: 1,262
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

Tuned Listener
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?
Bronze Super Contributor
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