CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Logged user name

Print topic Send  topic

Author Message
tsturgeon

Posts: 7
Posted: 12/20/2005, 11:07 AM

I want to log the name of the currently logged in user into each INSERT, UPDATE.

How do I do this?
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 12/20/2005, 11:59 AM

Are you tracking every insert / update per record or are you just recording the last change to a particular record???
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 12/20/2005, 12:08 PM

This is assuming that you are only storing the last insert/update per record.

On your form you can have a hidden field which will have the current userid or name (as the default). Whenever the user inserts a new record the default userid/name will be added with the record. For updates, you will want to put in custom code in the Before Update event that will change the hidden field value to the current user.
View profile  Send private message
tsturgeon

Posts: 7
Posted: 12/20/2005, 1:11 PM

I got it...I use an Expression in a customer insert/update, with the following function:
CCGetSession("UserLogin")

I am only logging the last user.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.