Web: Delete Function

I am trying to build a friendly delete button for the web.

I have an application with about 18 forms that need a delete button, and about 40 views for those forms.

@Command(EditClear) or ?deleteDocument results in an ugly screen that doesn’t respond in a friendly manner to the back button.

One approach I’ve considered is setting a delete flag, excluding docs with that flag from the views, and running an agent to delete flagged docs, but I’m hoping to spend less time then that requires.

I’m trying code like this in a button

varID:=@Text(@DocumentUniqueID);

@URLOpen(“reviewlog.nsf/test/”+varID+“!DeleteDocument”);

@URLOpen(“http://www.cnn.com”)

but the second @UrlOpen doesn’t go, it stops me at “Document Deleted”

Ideas?

Subject: Alternative

Another option that I’ve seen, which might be easier for you but result in the same effect as the delete flag, is to change the Form property by adding “del_” to the current form name.

This way you won’t need to restrict your views, but you also have the documents available for restore. You can then use an agent to remove them periodically.