| | | StrataFrame User
       
Group: StrataFrame Users Last Login: Yesterday @ 12:38:37 PM Posts: 308, Visits: 1,229 |
| | I created a permission for a button on my form. In the Denied Action section I set the Action to 'message key' and entered the message key. When the user clicks on the button I can't figure out how to trigger the denied action message.. or can you do this with one condition? If SecurityBasics.CurrentUser.GetPermission("save_Layout").Action = PermissionAction.Grant TheDo stuff.... else Show Denied Message. Thanks Tim |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Today @ 4:58:13 AM Posts: 4,379, Visits: 4,421 |
| | Since you are testing on this manually you will need to just call the denied message manually as well. The messages are automatically displayed when they are associated with a form property, for example. When you test manually you are just getting the action of the permission but the message it not automatically launched. Just call the ShowMessageByKey() manually to display your denied message. |
| |
|
|