Manage Learn to apply best practices and optimize your operations.

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:

Then place a field on the form and name it $$Return with the following formula:
database :=@ReplaceSubstring
(@Subset(@DbName; -1);"\":" ";"/":"+");
Note: Don't forget to check the option "Generate HTML for all fields" option.

Do you have comments on this tip? Let us know.

Dig Deeper on Lotus Notes Domino Formula Language



  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/ community. These cheat ...

  • HTML cheat sheet

    This is a really cool cheat sheet if you're looking to learn more about HTML. You'll find just about everything you every wanted ...

  • Carol Woodbury: Security

    Carol Woodbury