This topic is locked

hidden fields and LOGON_USER

9/5/2007 3:27:44 PM
ASPRunnerPro General questions
Sarjent author

I had a previous version of ASP runner and had two fields hidden on the add and edit page. Those fields were LOG_WHO and LOG_WHEN

Basically, on submit it would get the current username by using this command in the myownweb_aspfunctions.asp file (just after the line that had ' returns fields default value)

CDomID= Request.ServerVariables("LOGON_USER")
Log_When was just set as a default value of Now() in asprunner when I built it.

Log_Who was set to CDomID in asprunner when I built it.
Anyways,

LOG_WHO no longer works in the test version I downloaded. In fact, I can't even find the correct file to put my custom line in. What would be the equivelent of the same file?
Also, can I mark these as Hidden somehow instead of Readonly? Not a huge deal but I liked it.

Sergey Kornilov admin 9/5/2007

Use events (BeforeAdd/BeforeEdit) for this purpose. For example:

dict("LOG_WHO")=Request.ServerVariables("LOGON_USER")

dict("LOG_WHEN")=Now()


Make sure these fields are marked to appear on Edit/Add pages (Choose fields tab).

Remove those fields from the actual page template using the Visual Editor.

Sarjent author 9/5/2007

thansk much!