Hello.
I am trying to hide the edit link in the list page after one day.
I use this code in the After Record Processed event of the List Page:
if DateDiff("d", data("insert_date"), now()) > 1 then
record("edit_link") = false
else
record("edit_link") = true & checksecurity(dbvalue(data("Volunteer_1")),("edit_link"))
end if
Since he page security is set to let the users (Volunteer_1) modify ONLY THEIR OWN records so I'd also like to hide the edit link wherever the user is not the owner of the record, while at the moment the edit link is not displayed after a day (thats correct according to my purposes) but the edit link is displayed for the users who are not the owners of the records, even if by clicking it you're still not able to edit the record if you are not its owner.
In an older version of Asprunnerpro i used to modify the _list.htm template file code with the following code:
{if $row.1editable}
<a href="TableName_edit.asp?{$row.1editlink}">
Edit</a>
{/if}
but with my brand new version (6.2) i dunno how to do it.
Thank you in advance.
Flavio