Delete current viewing document over the Web
This tip explains to use @Formulas and @Commands instead of LotusScript to delete a current document on the Web.
LotusScript allows us to delete the current document on the Web if you are viewing the document. It generates this error: "You cannot delete the document which you are viewing." So the other possibility is to utilize the help of @Formulas and @Command along with the $$Return field.
Create a form with all the fields necessary. Create a new hotspot on the form with the following formula:
@Command([EditClear]); @DeleteDocumentThen place a field on the form and name it $$Return with the following formula:
database :=@ReplaceSubstring (@Subset(@DbName; -1);"\":" ";"/":"+"); "["+database+"/Home?openform]"Note: Don't forget to check the option "Generate HTML for all fields" option.
Do you have comments on this tip? Let us know.