This is the functionality I am looking for.
User is in a view.
User double clicks on a document.
The document opens.
User presses a ‘Delete’ button on the form
The document is permenantly deleted.
(When he goes back to the view he should not see the document with a delete flag)
I tried using lotus script, but since the uidoc is open when I try
Call doc.RemovePermanently( True )
It give me the error cannot delete doc. instantiated by uidoc.
Even though I am not doing doc=uidoc.document.
I tried doing a uidoc.close before
Call doc.RemovePermanently( True ) but still get the same error.
I tried using formula language:
@Command([EditDocument];“0”);
@Command([EditClear]);
@Command([FileCloseWindow])
But that just marks the document for deletion.
Allow soft deletions is not checked in the Database Properties.
Thanks for your time