User record expansion?


Author
Message
Ben Hayat
Ben Hayat
Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
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
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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.
Ben Hayat
Ben Hayat
Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
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
StrataFrame Team
S
StrataFrame Developer (4.3K reputation)StrataFrame Developer (4.3K reputation)StrataFrame Developer (4.3K reputation)StrataFrame Developer (4.3K reputation)StrataFrame Developer (4.3K reputation)StrataFrame Developer (4.3K reputation)StrataFrame Developer (4.3K reputation)StrataFrame Developer (4.3K reputation)StrataFrame Developer (4.3K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
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.
Ben Hayat
Ben Hayat
Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
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
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Look at the Role Based Security sample, it has a custom login form.
Ben Hayat
Ben Hayat
Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
Thanks Trent; I'll look into it!

..ßen
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search