This topic is locked

GetDefaultValue

5/5/2005 9:08:30 AM
ASPRunnerPro General questions
skemp author

Yesterday someone helped me with syntax to use for the defaultvalue on the username and datetime field. When I tried this code it worked great for ADDing a record but not for EDITing the record. Is there somewhere in the functions page that I can update these fields when the user EDITs the record?
Thank you again for you help.
Sheryl

A
aspbeginner 5/5/2005

The GetDefaultValue on the ..._functions.asp page should work the same for the add and edit pages. Also, make sure to uncheck the edit option when building the project so the field does not appear on the edit page. Are you using different filed to track the add and edit times? To just insert the time add the following to the DefaultValue of the filed ou want to update
if strField="yourfield" then GetDefaultValue = now() end if

skemp author 5/6/2005

I had not unchecked the edit pages so I will try that. Thank you.
One more thing, can you tell me how to add masterdetail information to the edit and add pages? While it shows up on the list page when a record is clicked, when you go into a record to edit that record or to add another, it doesn't show up.
Thank you again for your help.
Sheryl

Sergey Kornilov admin 5/10/2005

Sheryl,
you can't do this with ASPRunner. We'll add this feature later probably.