![]() |
Sergey Kornilov admin 12/19/2006 |
Orit, while not rs.EOF and recno<=PageSize and col<1 col=col+1 if DateDiff("d", Now(), CDate(rs("DateCreated)))>2 row.Add col & "editable",False else row.Add col & "editable",True end if |
|
orit author 12/20/2006 |
Thanks, |
![]() |
Sergey Kornilov admin 12/20/2006 |
Orit, |
|
orit author 12/21/2006 |
Thanks, 'addition for read only after 1 day
|
![]() |
Sergey Kornilov admin 12/21/2006 |
Did you replace DateCreated with the actual field name that stores creation date? |
|
orit author 12/22/2006 |
Oh, no.. I though that the "DateCreated" is kind of a keyword in asprunner. |
![]() |
Sergey Kornilov admin 12/22/2006 |
Add a field to your table named DateCreated. |
|
orit author 12/24/2006 |
Thanks. if DateDiff("d", Now(), CDate(rs("dateCreated")))>2 then
|
J
|
Jane 12/26/2006 |
Orit, if DateDiff("d", CDate(rs("ReportsTo")), Now())>2 then row.Add col & "editable",False else row.Add col & "editable",True end if Also you need to open templates/..._list.htm file, find following lines: <a href="TableName_edit.asp?{$row.1editlink}"> Edit</a>
{if $row.1editable} <a href="TableName_edit.asp?{$row.1editlink}"> Edit</a> {/if} |
|
orit author 12/26/2006 |
Perfect, |