﻿<?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 » WinForms (How do I?)  » Using User security etc</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 16:01:21 GMT</lastBuildDate><ttl>20</ttl><item><title>Using User security etc</title><link>http://forum.strataframe.net/FindPost31246.aspx</link><description>I plan to use User Logins and Roles etc in the next while and am currently seting up my Application Database tables. At this point, I am setting up the actual transaction tables (rather than the User login / roles tables etc.)&lt;br/&gt;&lt;br/&gt;I need to know what type of fields to set up for the appication to hold the user ID. Typically I will be adding a 'Who Did what when' to my data files and need to know what type of field the 'Who' should be . What sort of field does SF expect a user to be&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Integer ?&amp;nbsp; Character&amp;nbsp; ?&amp;nbsp;&amp;nbsp; Varchar? etc.&lt;br/&gt;&lt;br/&gt;Tia&lt;br/&gt;&lt;br/&gt;Gerard</description><pubDate>Fri, 15 Jun 2012 17:46:50 GMT</pubDate><dc:creator>Ger Cannoll</dc:creator></item><item><title>RE: Using User security etc</title><link>http://forum.strataframe.net/FindPost31248.aspx</link><description>Hi Edhy.&lt;br/&gt;&lt;br/&gt;Thats great and thanks for the tips</description><pubDate>Fri, 15 Jun 2012 17:46:50 GMT</pubDate><dc:creator>Ger Cannoll</dc:creator></item><item><title>RE: Using User security etc</title><link>http://forum.strataframe.net/FindPost31247.aspx</link><description>Hi Gerard,&lt;br/&gt;&lt;br/&gt;StrataFrame holds a security object&amp;nbsp; &lt;span style="font-weight: bold;"&gt;SecurityBasics.CurrentUser&lt;/span&gt; with some properties that could be useful for you, UserPK holds the PK (Int) field and UserName (Varchar) holds the user name, so you can use whichever fit your case.&amp;nbsp; I mostly use the SecurityBasics.CurrentUser.UserName value to avoid having to look at the PK value when generating reports or showing this info on a form.&lt;br/&gt;&lt;br/&gt;Also on a site note, check this thread &lt;a href="http://forum.strataframe.net/FindPost14216.aspx"&gt;&lt;a href="http://forum.strataframe.net/FindPost14216.aspx"&gt;http://forum.strataframe.net/FindPost14216.aspx&lt;/a&gt;&lt;/a&gt; posted by Charles Thomas Blankeship a while ago, but still very accurate on how to add security to your SF applications.&lt;br/&gt;&amp;nbsp;</description><pubDate>Fri, 15 Jun 2012 12:00:35 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>