Keeping track of currently logged in user


Author
Message
Scott
Scott
StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
I want to be able to keep track of who adds and deletes a record.  I have added a User BO to the appmain class and can access this from any of my forms.  That is working fine.  What I want to be able to do now is in the before_save event of the BO's be able to assign the value of the user ID to the userID field in the table.

My question here is what is the best, proper, common.... what ever the term is,  method to keep the BO's isolated and able to be used for a web application.  I was thinking of adding a custom property on each BO and calling a custom method of the BO to set the property, or making a public property on the BO that can be set in the Parentform_Loading methd when the BO's are being populated on a form.

Any input would be greatly appreciated. Sorry for the long post but I could think of an easy way to descrip the situation.

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