﻿<?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  » How do I determine the SF security project ID via code?</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 15:27:13 GMT</lastBuildDate><ttl>20</ttl><item><title>How do I determine the SF security project ID via code?</title><link>http://forum.strataframe.net/FindPost6186.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>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/FindPost6234.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/FindPost6209.aspx</link><description>You can call the FillAll() method on the SFSRolesBO object and pass it a project pk of 0.&amp;nbsp; 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>StrataFrame Team</dc:creator></item></channel></rss>