﻿<?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?)  » I would like to add the logged in user's user_id to the application object when they log in</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 17 May 2026 20:01:01 GMT</lastBuildDate><ttl>20</ttl><item><title>I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20413.aspx</link><description>So can you help me with this :) ?&lt;/P&gt;&lt;P&gt;Thanks</description><pubDate>Sat, 01 Nov 2008 10:23:07 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20500.aspx</link><description>That would be the safest way to go. :)</description><pubDate>Sat, 01 Nov 2008 10:23:07 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20486.aspx</link><description>[quote][b]Trent L. Taylor (10/31/2008)[/b][hr]If you only plan to have one RBS application, then that would work.&amp;nbsp; But as soon as you were to create your second application, then you would have a problem.&amp;nbsp;[/quote]&lt;/P&gt;&lt;P&gt;OK. Then I will handle thos in the VS IDE and export the data to the tables in the app :)&lt;/P&gt;&lt;P&gt;Thanks again</description><pubDate>Fri, 31 Oct 2008 12:23:20 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20483.aspx</link><description>If you only plan to have one RBS application, then that would work.&amp;nbsp; But as soon as you were to create your second application, then you would have a problem.&amp;nbsp;</description><pubDate>Fri, 31 Oct 2008 09:04:38 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20481.aspx</link><description>[quote][b]Trent L. Taylor (10/30/2008)[/b][hr]When you get back to it you make make it more simple.&amp;nbsp; The SFS tables and the SFS views that are in your StrataFrame database are required for your application (minus the SFSprojects table).&amp;nbsp; But other than that they will be identical.&amp;nbsp; So if you are not using the DDT, you can have SSMS create the scripts for you and then deploy them that way.&amp;nbsp; I will be sure to update the help docs with the manual scripts.&amp;nbsp; Most people use the DDT....including us.&amp;nbsp; We too have a very deep understanding of SQL Server, this is not the point of the DDT.&amp;nbsp; The DDT is designed for deployment and making deployment much easier.&amp;nbsp; This is why the DDT has a wizard that allows you to just click which RBS project you are using, and it will bring in all of the data for your security project.&amp;nbsp; If you do this manually, well, it is going to be much hard to distribute your permissions, etc.&amp;nbsp; It doesn't mean that it is not possible, it just requires more elbow grease.&lt;P&gt;But I know what you mean about staying on schedule.&amp;nbsp; When you start back up, start with the RBS sample, it might speed things up since you are a strong developer and a sample may be all that you need.[/quote]&lt;P&gt;Hi Trent.&lt;P&gt;I really appreciate all the help you and all the others here have given me to help me get up to speed on the&amp;nbsp;framework. What I am thinking is that when I get back to retrofitting this application after go live, I may just move all the RBS tables into the application and set everything up using the app. Would that work?</description><pubDate>Fri, 31 Oct 2008 08:51:04 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20477.aspx</link><description>When you get back to it you make make it more simple.&amp;nbsp; The SFS tables and the SFS views that are in your StrataFrame database are required for your application (minus the SFSprojects table).&amp;nbsp; But other than that they will be identical.&amp;nbsp; So if you are not using the DDT, you can have SSMS create the scripts for you and then deploy them that way.&amp;nbsp; I will be sure to update the help docs with the manual scripts.&amp;nbsp; Most people use the DDT....including us.&amp;nbsp; We too have a very deep understanding of SQL Server, this is not the point of the DDT.&amp;nbsp; The DDT is designed for deployment and making deployment much easier.&amp;nbsp; This is why the DDT has a wizard that allows you to just click which RBS project you are using, and it will bring in all of the data for your security project.&amp;nbsp; If you do this manually, well, it is going to be much hard to distribute your permissions, etc.&amp;nbsp; It doesn't mean that it is not possible, it just requires more elbow grease.&lt;/P&gt;&lt;P&gt;But I know what you mean about staying on schedule.&amp;nbsp; When you start back up, start with the RBS sample, it might speed things up since you are a strong developer and a sample may be all that you need.</description><pubDate>Thu, 30 Oct 2008 21:46:52 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20472.aspx</link><description>Sorry. Didn't see you got beyond the activation part.</description><pubDate>Thu, 30 Oct 2008 18:28:23 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20471.aspx</link><description>1. Make sure you can connect to the internet.&lt;/P&gt;&lt;P&gt;2. From the StrataFrame menu in VS select License Information to bring up the Activation Client.&lt;/P&gt;&lt;P&gt;3. Click the Next button and answer&amp;nbsp;Yes to the "Are you sure you want to deactivate ALL of your MicroFour products.&lt;/P&gt;&lt;P&gt;4. Rerun the License Activation Client.&lt;/P&gt;&lt;P&gt;5. Enter you Microfour user account (not your forum account) ID (e-mail) and password.&lt;/P&gt;&lt;P&gt;6. Select the network adaptor you wish to bind to and press Next.&lt;/P&gt;&lt;P&gt;7. Select the items you wish to activate (RBS should be listed) and press Next.&lt;/P&gt;&lt;P&gt;8. You should see a "Successfully Activated!!" message.&lt;/P&gt;&lt;P&gt;-Larry</description><pubDate>Thu, 30 Oct 2008 18:26:40 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20470.aspx</link><description>[quote][b]Greg McGuffey (10/30/2008)[/b][hr][quote]So apparently the script provided to generate the tables in my database is not correct.[/quote]&lt;BR&gt;&lt;BR&gt;I haven't upgraded to the latest version (1.6.6), but the link in my help file is to a script from 2006. There are no auditing tables in it, so looks like SF probably needs to provide a new script for the security tables.[/quote]&lt;/P&gt;&lt;P&gt;Well, I have given up on trying to integrate RBS into my app for now. I have too much stuff to work on so I can take this app live within the next week or so. I can deal with the discrepancies. I have my own set of utility programs that can create a working script (correctly - not like how SQL Server does it :D ) from a set of tables. &lt;/P&gt;&lt;P&gt;When I have phase 1 finished, I will revisit the RBS integration.&lt;/P&gt;&lt;P&gt;Thanks for all the help :)</description><pubDate>Thu, 30 Oct 2008 17:22:17 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20469.aspx</link><description>[quote]So apparently the script provided to generate the tables in my database is not correct.[/quote]&lt;br&gt;
&lt;br&gt;
I haven't upgraded to the latest version (1.6.6), but the link in my help file is to a script from 2006.  There are no auditing tables in it, so looks like SF probably needs to provide a new script for the security tables.</description><pubDate>Thu, 30 Oct 2008 17:15:12 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20466.aspx</link><description>[quote][b]Ivan George Borges (10/30/2008)[/b][hr]Whenever you run it from the VS IDE, you will get the data from the StrataFrame database.&lt;P&gt;You will have to script the import procedure to get that info from the SFS tables in the StrataFrame database and then append them to your client's database or to your testing database in you network. So, when you run the application and point it to its database, you will be speaking to the SFS tables in it.[/quote]&lt;P&gt;OK - I finally did figure that one out. So I created a simple security based application with one form that called the maintenace form and got an error when I tried to save a new user saying that a solumn in my users table did not exist. So apparently the script provided to generate the tables in my database is not correct :(&lt;P&gt;Thanks for the assistance.</description><pubDate>Thu, 30 Oct 2008 15:03:22 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20465.aspx</link><description>Whenever you run it from the VS IDE, you will get the data from the StrataFrame database.&lt;/P&gt;&lt;P&gt;You will have to script the import procedure to get that info from the SFS tables in the StrataFrame database and then append them to your client's database or to your testing database in you network. So, when you run the application and point it to its database, you will be speaking to the SFS tables in it.</description><pubDate>Thu, 30 Oct 2008 14:59:11 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20462.aspx</link><description>[quote][b]Ivan George Borges (10/30/2008)[/b][hr]Hi Marcia.&lt;P&gt;Have a look at Role-Based Security / Defining Security within the Application / Deploying Security Data.&lt;/P&gt;&lt;P&gt;Then you will find&amp;nbsp;a topic about Deploying Security Data Without the DDT.&lt;/P&gt;&lt;P&gt;But if I were you, I would consider getting the DDT too. ;)[/quote]&lt;P&gt;I have my husband the DBA to handle the stored procedures :)&lt;P&gt;I am pretty comfortable in SQL Server, so I really do not need it. I found the topic and I did run the script. My problem is that when I run the security maintenace form and run it, it populates the tables in the Strataframe database and not my application database. All I want to know is how to make it update the tables in my database and I can't seem to find an answer to that question anywhere.</description><pubDate>Thu, 30 Oct 2008 14:30:00 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20461.aspx</link><description>Hi Marcia.&lt;/P&gt;&lt;P&gt;Have a look at Role-Based Security / Defining Security within the Application / Deploying Security Data.&lt;/P&gt;&lt;P&gt;Then you will find&amp;nbsp;a topic about Deploying Security Data Without the DDT.&lt;/P&gt;&lt;P&gt;But if I were you, I would consider getting the DDT too. ;)</description><pubDate>Thu, 30 Oct 2008 14:09:13 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20458.aspx</link><description>[quote][b]Greg McGuffey (10/30/2008)[/b][hr]When you use the Security editor via the SF menu, you will pick/create a project. The data is then stored in the SF database, using the project to keep things separate. When you update roles/permissions this way, you will then need to deploy the security data to your database. &lt;BR&gt;&lt;BR&gt;The easiest way to do this is to use the DDT to manage it. However, I believe that if use it and have your security tables in your app database, you have to also use the DDT to manage deployment of your entire database (I think the newest versions allow for custom/non-DDT sprocs and views, but I think all tables still need to be deployed via the DDT). If is the case for you, then open the DDT and just redeploy the database. Typically, when you add the security tables to the DDT, it adds the appropriate data packages also, so it is a snap.&lt;BR&gt;&lt;BR&gt;If you aren't using the DDT, it gets more interesting. If you use the security editor via VS or the SF menu to update roles, then you need to move the data out of the SF database yourself. I haven't done this...it just looked like too much fun and I have a weak liver :ermm: For more help on deploying security data, see the "Deploying Security Data" topic in the RBS section of the help file. &lt;BR&gt;&lt;BR&gt;What I've done is a hybrid. I just have two databases: one for the app and one for security. That way I can use scripts to manage my app database and DDT to manage the security database. When I started, there were reasons I chose not to use the DDT for my application database, but if I were to start out now, those reasons have diminished a lot, so I might just use the DDT for both now.&lt;BR&gt;&lt;BR&gt;[/quote]&lt;/P&gt;&lt;P&gt;No, I am not using DDT. I just want to know how to point the security maintenance application to the SFS* tables that I have created in my application database. Obviously, my client does not have the Stataframe database on his site and it would be inconvenient to have his application blowing up when he tries to maintain users. I have search the documentation and I can't find anywahere that it tells me how to do this.</description><pubDate>Thu, 30 Oct 2008 13:45:43 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20456.aspx</link><description>When you use the Security editor via the SF menu, you will pick/create a project. The data is then stored in the SF database, using the project to keep things separate.  When you update roles/permissions this way, you will then need to deploy the security data to your database.  &lt;br&gt;
&lt;br&gt;
The easiest way to do this is to use the DDT to manage it.  However, I believe that if use it and have your security tables in your app database, you have to also use the DDT to manage deployment of your entire database (I think the newest versions allow for custom/non-DDT sprocs and views, but I think all tables still need to be deployed via the DDT).  If is the case for you, then open the DDT and just redeploy the database.  Typically, when you add the security tables to the DDT, it adds the appropriate data packages also, so it is a snap.&lt;br&gt;
&lt;br&gt;
If you aren't using the DDT, it gets more interesting. If you use the security editor via VS or the SF menu to update roles, then you need to move the data out of the SF database yourself.  I haven't done this...it just looked like too much fun and I have a weak liver  :ermm:  For more help on deploying security data, see the "Deploying Security Data" topic in the RBS section of the help file. &lt;br&gt;
&lt;br&gt;
What I've done is a hybrid. I just have two databases: one for the app and one for security.  That way I can use scripts to manage my app database and DDT to manage the security database.  When I started, there were reasons I chose not to use the DDT for my application database, but if I were to start out now, those reasons have diminished a lot, so I might just use the DDT for both now.&lt;br&gt;
&lt;br&gt;
However, you can make a call to the security dialog within an app and then it uses the security key to identify the appropriate data source that contains the SFS* tables for your app.  You'd use a call like this within a project setup for security:&lt;br&gt;
&lt;br&gt;
[codesnippet]using (SecurityDialog loDialog = new SecurityDialog())&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp;loDialog.ShowDialog();&lt;br&gt;
}[/codesnippet]&lt;br&gt;
&lt;br&gt;
See the "Calling the Security Maintenance Dialog" help topic in the RBS section of the help file for more info.&lt;br&gt;
&lt;br&gt;
Even if you do this, you will still need to deploy the data from your dev environment to your test and then production environments.  However, you could use this to skip the whole deployment thingy while figuring out the RBS at this stage.&lt;br&gt;
&lt;br&gt;
Good luck!</description><pubDate>Thu, 30 Oct 2008 13:35:20 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20452.aspx</link><description>[quote][b]Trent L. Taylor (10/30/2008)[/b][hr]No, you can retro-fit the security into your application.&amp;nbsp; But the easiest way to figure out what to add is to create a new security project, then open up the Appmain.vb or program.cs depending which language you are using, and rob the code out of there that is security specific and then add it into your application.[/quote]&lt;/P&gt;&lt;P&gt;I can tell that this is going to be another one of those days :(&lt;/P&gt;&lt;P&gt;I created the new security project and then tried to enter roles using the security editor. Even though I ran the script to add the SFS* tables to my application database, when I added the roles, the application added them to the tables in the StrataFrame database. What do I need to do to get the security editor to add the users. roles, etc to the tables in my database?</description><pubDate>Thu, 30 Oct 2008 11:35:17 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20451.aspx</link><description>[quote][b]Trent L. Taylor (10/30/2008)[/b][hr]No, you can retro-fit the security into your application.&amp;nbsp; But the easiest way to figure out what to add is to create a new security project, then open up the Appmain.vb or program.cs depending which language you are using, and rob the code out of there that is security specific and then add it into your application.[/quote]&lt;/P&gt;&lt;P&gt;Thanks. I will try that. Just in case there is a problem, I have already backed up my existing application :D</description><pubDate>Thu, 30 Oct 2008 10:57:15 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20450.aspx</link><description>No, you can retro-fit the security into your application.&amp;nbsp; But the easiest way to figure out what to add is to create a new security project, then open up the Appmain.vb or program.cs depending which language you are using, and rob the code out of there that is security specific and then add it into your application.</description><pubDate>Thu, 30 Oct 2008 10:53:06 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20449.aspx</link><description>[quote][b]Trent L. Taylor (10/30/2008)[/b][hr]That should work...the only thing that I don't understand is why PKs would have to match...unless you are storing these off presently in other tables for auditing purposes...then I could see that.&amp;nbsp; But as for authentication, it won't matter.[/quote]&lt;/P&gt;&lt;P&gt;OK - I see what you are getting at. Later, when I implement audit loggin, I can let then view the log by user as the user is stored in RBS.&lt;/P&gt;&lt;P&gt;I have been heads down in the RBS documentation to see how I add security to my app but I must have taken my stupid pills today :P I cannot see how to get started. It looks like I have to add a new security project to my solution. Is that correct?</description><pubDate>Thu, 30 Oct 2008 10:28:13 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20448.aspx</link><description>That should work...the only thing that I don't understand is why PKs would have to match...unless you are storing these off presently in other tables for auditing purposes...then I could see that.&amp;nbsp; But as for authentication, it won't matter.</description><pubDate>Thu, 30 Oct 2008 10:22:30 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20447.aspx</link><description>[quote][b]Trent L. Taylor (10/30/2008)[/b][hr]Ehhh....that could be tough.&amp;nbsp; Not saying it is impossible, but you will have to "sync" up the SFSUsers and your users tables so that RBS authenticates off of the SFSUsers versus your users.&amp;nbsp; What I would do is just write a conversion program that is run the first time the app is executed with the RBS that converts your existing users and roles into the RBS users tables and sets their permissions.&amp;nbsp; That is going to be easier than tryin to make two different applications work together.[/quote]&lt;/P&gt;&lt;P&gt;Hmmm. That is an idea. I could actually synch up the existing data myself before I give the client the next build. Then I suppose I could add some code to my Users form to update the RBS data with the user data that has been added or edited. It is unlikely that they will add new roles, but just in case they do, I could add code to update the roles in RBS. Do you think that would work? The only snag I can see is that the PK's have to match.</description><pubDate>Thu, 30 Oct 2008 10:20:06 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20446.aspx</link><description>Ehhh....that could be tough.&amp;nbsp; Not saying it is impossible, but you will have to "sync" up the SFSUsers and your users tables so that RBS authenticates off of the SFSUsers versus your users.&amp;nbsp; What I would do is just write a conversion program that is run the first time the app is executed with the RBS that converts your existing users and roles into the RBS users tables and sets their permissions.&amp;nbsp; That is going to be easier than tryin to make two different applications work together.</description><pubDate>Thu, 30 Oct 2008 10:16:59 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20445.aspx</link><description>Ok, Trent. Now you really asked for it :P&lt;/P&gt;&lt;P&gt;I already have a table in my existing application to store user names and another for their roles. Can I continue to use my tables and still hook into RBS just for the purposes of saving the current users login id?</description><pubDate>Thu, 30 Oct 2008 10:12:53 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: I would like to add the logged in user's user_id to the application object when they log in</title><link>http://forum.strataframe.net/FindPost20444.aspx</link><description>[quote][b]Trent L. Taylor (10/30/2008)[/b][hr]Just open up the Activation client and deactivate your current license.&amp;nbsp; Then go back in and re-activate your license and you will be able to pick both the framework and RBS licenses.[/quote]&lt;/P&gt;&lt;P&gt;Yeah - I figured that out right after I posted that reply :blush:</description><pubDate>Thu, 30 Oct 2008 10:02:09 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item></channel></rss>