StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



User record expansion?Expand / Collapse
Author
Message
Posted 02/20/2007 6:02:21 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 10/31/2007 5:20:05 PM
Posts: 374, Visits: 1,197
The application that I'm considering has to make many decisions based on "Who" has logged in. Therefore I'll need to add several new fields to the user record in order to make those decisions when a user logs in.

Is it possible/advisable to alter the structure of this file or is it better to create another file to have a ono-to-one relationship and add the fields in there?
Thanks!

..ßen
Post #7037
Posted 02/21/2007 9:50:03 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 4:58:13 AM
Posts: 4,379, Visits: 4,421
I would DEFINITELY NOT change the structure of the RBS tables.  Instead, create a custom login form and take advantage of the RBS events and create your own table that compliments the security to determine this type of information.  Changing the existing structures really is not recommended.
Post #7055
Posted 02/21/2007 10:17:51 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 10/31/2007 5:20:05 PM
Posts: 374, Visits: 1,197
Instead, create a custom login form and take advantage of the RBS events and create your own table that compliments the security to determine this type of information.


Trent, thanks for the reply...Do you have any sample that shows how a developer can create a new component from a SF component (especially if the SF component uses table) and then expand upon it? Frankly, I've not done this before and I'd appreciate if you could point me to right direction.

Thank you in advance!

..ßen
Post #7060
Posted 02/21/2007 11:49:52 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 2 days ago @ 5:02:56 PM
Posts: 2,682, Visits: 1,882
We don't have a sample on how to add extra data to the Users table, but your best bet would be to just create your own table and link it back to the users.  Then, when the user changes, you can use the ID (pk) of the current user and go retrieve all of the custom user data that you need.


www.bungie.net
Post #7077
Posted 02/21/2007 3:21:32 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 10/31/2007 5:20:05 PM
Posts: 374, Visits: 1,197
We don't have a sample on how to add extra data to the Users table, but your best bet would be to just create your own table and link it back to the users.


Be, that was my original approach. However, Trent suggested to inherit from Login component and then add my table. My request for sample was on the login inheritance and not creating the table.

I'm still open to both suggestions. Which one will it lead to a better solution?

..ßen
Post #7086
Posted 02/21/2007 3:23:28 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 4:58:13 AM
Posts: 4,379, Visits: 4,421
Look at the Role Based Security sample, it has a custom login form.
Post #7087
Posted 02/21/2007 5:44:04 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 10/31/2007 5:20:05 PM
Posts: 374, Visits: 1,197
Thanks Trent; I'll look into it!

..ßen
Post #7094
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 4:29pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 13 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.