Write HTML and JavaScript in Notes view rows and columns on the Web

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.

Related resources from SearchDomino.com:
Open Lotus Notes documents in Microsoft Word without coding

JavaScript detects Web browser type and version in Notes/Domino 8.0.2

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.

In my JavaScript below, you'll see that the code written in the view column formula to can perform some handy and useful actions. In the following example, the code deletes the document from the database.

[<a href='#' onClick="window.open
+"?deleteDocument ','_new');

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

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.