This topic is locked

Modified Field

1/5/2010 3:13:40 AM
ASPRunnerPro General questions
M
mr. zx author

Dears,
I want to see the last modified user name & date on the record in ASPRunnerPro.
Best Regards,

Mr. zx

Sergey Kornilov admin 1/5/2010

Proceed to 'Edit as' settings of the field that should store the username and set default value to Session("UserID")
An excerpt from http://www.xlinesoft.com/asprunnerpro/docs/_edit_as__settings.htm
Default value:

Now() - current datetime.

Session("UserID") - user id of person who updated the record.

Request.ServerVariables("remote_addr") - IP address.
M
mr. zx author 1/7/2010

Thanks for your help

But i changed the field setting as you see = Session("_" & strTableName &"_OwnerID")it's work in the UserEntered field but in the UserModified field is not working display 0
thanks again for you help
regards,

zx

Sergey Kornilov admin 1/7/2010

You need to use Session("UserID") for this purpose.

M
mr. zx author 1/11/2010



You need to use Session("UserID") for this purpose.



thank you very much is realy the solution

C
clig 1/18/2010



Dears,
I want to see the last modified user name & date on the record in ASPRunnerPro.
Best Regards,

Mr. zx


using a column named "modified"
Function BeforeEdit(dict, where, oldvalues,keys,message,inline)

dict("Modified") = SESSION("UserID") & " - " & Now()
BeforeEdit = True
End Function ' BeforeEdit