@DeletedDocument - How to restore a deleted document

Dear All,

I have finished an application that work fine with forms and views and I have a superuser that have privileges to delete documents, today accidentally he deletes one important document and we need to restore it.

I need to create a view with all deleted documents but I don’t know the correct @formula to use it (something like @deleteddocument) and I want to create a Button with an action like @restoredocument, but it doesn’t exist.

Could you tell me the correct formula to use,

Thanks,

Subject: NEVER EVER ALLOW DELETIONS

In important dbs anyway (and for us, that’s nearly all of them).

If there’s a need to clear a view of ‘junk’, provide someone/some role a ‘hide’ function that flags the docs and moves them into a ‘hidden’ doc view that contains an ‘unhide’ function.

Delete = bad…very bad…

Subject: @DeletedDocument - How to restore a deleted document

If this was a hard delete - you’ll need to pull the document from a backup of the database - it is gone.

If the Soft-Delete function is enabled for this database, the @UndeleteDocument command can be used to restore the soft-deleted document - see Designer Help for more info…

Also here:

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/12fd4bf733cdd0e685256e7b005ba762?OpenDocument