I have an agent that looks like this:
FIELD MarktoDeleteDate:=MarkToDeleteDate;
@If(@Prompt([YesNo]; “Caution”;"Mark the currently selected document for deletion? ")=1;
@Do(
@Command( [EditDocument] ; “1”; “1” );
@SetField(“MarkToDeleteDate”;@Now);
“”)
When it runs, the field MarkToDeleteDate, which is a date field, gets filled in with the text value of the date instead of a date value. How can I correct this? The agent needs to run run from a view with a document selected or from the document.