﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum / StrataFrame Application Framework / Role Based Security  / Deny Action Message / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Tue, 02 Dec 2008 16:17:54 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Deny Action Message</title><link>http://forum.strataframe.net/Topic5930-21-1.aspx</link><description>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. &lt;/P&gt;&lt;P&gt;Just call the ShowMessageByKey() manually to display your denied message.</description><pubDate>Thu, 18 Jan 2007 10:44:44 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>Deny Action Message</title><link>http://forum.strataframe.net/Topic5930-21-1.aspx</link><description>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.&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT color=#0000ff&gt;If&lt;/FONT&gt; SecurityBasics.CurrentUser.GetPermission(&lt;FONT color=#800000&gt;"save_Layout"&lt;/FONT&gt;).Action = PermissionAction.Grant The&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=1&gt;Do stuff....&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#111111 size=1&gt;else&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#111111 size=1&gt;Show Denied Message.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#111111 size=1&gt;&lt;/FONT&gt; &lt;/P&gt;&lt;P&gt;&lt;FONT color=#111111 size=1&gt;Thanks&lt;BR&gt;Tim&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=1&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/FONT&gt; &lt;/P&gt;&lt;P&gt;&lt;FONT size=1&gt;&lt;FONT color=#0000ff&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;/P&gt;&lt;P&gt;&lt;FONT size=1&gt;&lt;FONT color=#0000ff&gt; &lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Thu, 18 Jan 2007 10:31:40 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item></channel></rss>