While developing a Web application, I needed to place Delete, Open and Edit links within each row of a document in a Lotus Notes view.
By default, Lotus Notes creates links in the first column of views that allows users to open documents. I had to create an action hotspot on the form to enable users to edit, delete or open documents.
Placing HTML code within brackets in the Notes view column enables Domino to render this on the Web. I also used the Document Unique ID and an anchor tag to delete the document by using Domino URL commands.
[<a href='#' onClick="window.open ('/"+@WebDbName+"/Employee/"+@Text(@DocumentUniqueID) +"?deleteDocument ','_new'); window.location.reload()">Delete</a>]
The column view formula in brackets () renders HTML on the browser. As mentioned above, this code can be used to accomplish a number of useful tasks, such as editing or opening documents.
Do you have comments on this tip? Let us know.
This tip was submitted to the SearchDomino.com tip library by member Ali Ahmad. Please let
others know how useful it is via the rating scale below. Do you have a useful Lotus Notes/Domino
technical tip or code snippet to share? Submit it to our monthly
tip contest and you could win a prize.
This was first published in May 2009