Deny Action Message


Author
Message
Tim Dol
Tim Dol
StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)
Group: Forum Members
Posts: 340, Visits: 1.4K
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 The

Do stuff....

else

Show Denied Message.

 

Thanks
Tim

 

 

 


Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search