StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Deny Action MessageExpand / Collapse
Author
Message
Posted 01/18/2007 10:31:40 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame 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 The

Do stuff....

else

Show Denied Message.

 

Thanks
Tim

 

 

 

Post #5930
Posted 01/18/2007 10:44:44 AM


StrataFrame Developer

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.

Post #5932
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 1:32pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 9 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.