Rudolph
Because I think it would be better to hide for instance, New on a form as oppose to when a user click on it, you Access Denied.
Looks more clean
Thanks to all who responded. I am not certain how clear I was to you all so I have added a screen to be more graphic in my explanation. Let me know if it is possible in this fantistic framework.
One way to apply security into a SF application is to do it programatically. So lets say you would like to hide a menu item based on the user permissions, the following code could be used to accomplish that:
If SecurityBasics.CurrentUser.GetPermission("Your Permission Key").Action = PermissionAction.Grant Me.YourMenuItem.Visible = True Else MeYourMenuItem.Visible = False End If
Hope it helps.
The logic you are trying to produce is actually very possible and is something that we even do ourselves in our medical application. In fact, we have one dialog that is extremely complex in our medical application called Patient Registration. We have the ability to allow users to do the following:
There are many other security permissions on this dialog as well, but the point is you can get as sophisticated and complex as you like. I have yet to run into a scenario where I couldn't secure something that way that we needed to...that is why the RBS continues to grow and evolve to support all of these types of scenarios!