﻿<?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  / How do I determine the SF security project ID via code? / 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:36:25 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: How do I determine the SF security project ID via code?</title><link>http://forum.strataframe.net/Topic6186-21-1.aspx</link><description>Ah. That's important to note.  I took a look at the script that can be used to create the security tables (download link from security help file) to try to wrap my head around this a bit better and I noticed that some tables that have the sproj_pk column (prefixed of course) have a default of 0 and some don't (SFSRoles, SFSPermissions and SFSRestrictions).  Is the script wrong or are these columns updated otherwise?&lt;br&gt;&lt;br&gt;</description><pubDate>Thu, 25 Jan 2007 11:04:15 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: How do I determine the SF security project ID via code?</title><link>http://forum.strataframe.net/Topic6186-21-1.aspx</link><description>You can call the FillAll() method on the SFSRolesBO object and pass it a project pk of 0.  At runtime, there are no project pks... the SFSProjects table does not exist in the runtime database, and the tables are assumed to have records from only one project.</description><pubDate>Thu, 25 Jan 2007 09:12:49 GMT</pubDate><dc:creator>Ben Chase</dc:creator></item><item><title>How do I determine the SF security project ID via code?</title><link>http://forum.strataframe.net/Topic6186-21-1.aspx</link><description>I need to load the an instance of the SFSRolesBO with all the roles from the security project used by the application.  While I can look at the table and figure out what the ID it, it would be much better to just reference the ID used by the security system.  How do I do that?&lt;br&gt;</description><pubDate>Wed, 24 Jan 2007 15:38:39 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>