﻿<?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 - V1 » Role Based Security  » Permission Question</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 02:59:35 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Permission Question</title><link>http://forum.strataframe.net/FindPost11342.aspx</link><description>[quote]I have never seen this error before on a BO.&amp;nbsp; Do I have to do something special for the Permissions Business Object?[/quote]&lt;/P&gt;&lt;P&gt;More than likely you did not build the partial class for the BO.&amp;nbsp; The TableSchema is an abstract property that must be overwritten.&amp;nbsp; If you look at another BO you will see what this property contains.&amp;nbsp; Let me know if you need more explanation.&amp;nbsp; :)</description><pubDate>Wed, 05 Sep 2007 09:03:13 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>Permission Question</title><link>http://forum.strataframe.net/FindPost10782.aspx</link><description>My default permission action is set to deny permissions.&amp;nbsp; I'm writing a routine to loop through a tab control&amp;nbsp;setting the visibility of each tab&amp;nbsp;based on permissions but I only want to check permissions if a permission key exists. &lt;/P&gt;&lt;P&gt;Is there something built in for checking the existence of a permission key, other than using the business object directly or is there a better approach.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Wed, 05 Sep 2007 09:03:13 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Permission Question</title><link>http://forum.strataframe.net/FindPost11334.aspx</link><description>I created a PermissionsBO (Mapped to DDT) and created a routine similar to the one you suggested.&amp;nbsp; When I execute the code&amp;nbsp;&amp;nbsp;I get the following message when setting&amp;nbsp;the SQL Command Text.&lt;/P&gt;&lt;P&gt;"A class derived from MicroFour.StrataFrame.Business.BusinessLayer must override the property 'TableSchema'"&lt;/P&gt;&lt;P&gt;I have never seen this error before on a BO.&amp;nbsp; Do I have to do something special for the Permissions Business Object?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Tue, 04 Sep 2007 16:43:05 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Permission Question</title><link>http://forum.strataframe.net/FindPost10865.aspx</link><description>If you wanting to know if a permission exists regardless of the logged-in users permissions, then you will need to query the BO.&amp;nbsp; The easiest thing would be to create a scalar method that accepts the key then just returns the count of keys found.&amp;nbsp; This would be the fastest way.&amp;nbsp; Our BO rules just check for a duplicate, so you will want to query this yourself.&lt;P&gt;[codesnippet]Dim loCommand As New SQLCommand()&lt;BR&gt;loCommand.CommandText = "SELECT COUNT(*) FROM SFSPermissions WHERE &lt;A href="mailto:pm_key=@pm_key"&gt;pm_key=@pm_key&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;loCommand.Parameters.Add("@pm_key",VarChar)&lt;BR&gt;loCommand.parameters(0).value = "YourKey"&lt;/P&gt;&lt;P&gt;If CType(Databasics.DataSources("").ExecuteScalar(loCommand), Integer) &amp;gt; 0 Then&lt;BR&gt;&amp;nbsp;&amp;nbsp; '-- It exists&lt;BR&gt;End If[/codesnippet]</description><pubDate>Tue, 14 Aug 2007 15:41:15 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Permission Question</title><link>http://forum.strataframe.net/FindPost10860.aspx</link><description>Just following up on this issue. Any idea's&lt;/P&gt;&lt;P&gt;Thanks.</description><pubDate>Tue, 14 Aug 2007 12:14:47 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item></channel></rss>