Manage Learn to apply best practices and optimize your operations.

How to create dynamic JavaScript in Notes Domino without formulas

If you need to create a large amount of dynamic JavaScript and you're not familiar with the use of @DBColumn and @DBLookup formulas, this tip is for you. Placing this code in your HTML Head Content section is a simple workaround for busy Lotus Notes Domino developers.

Related resources from
FAQ: Lotus Notes Domino and JavaScript

Validate Lotus Notes Domino fields using JavaScript

Formula language for Lotus Notes -- 7 tips in 7 minutes

Top 5 @DBLookup tips

Some Lotus Notes Domino developers may want to create large amounts (more than 64 KB) of dynamic JavaScript in the $$HTMLHead or "HTML head content" section using either @DBColumn or @DBLookup formulas. This isn't possible for all developers, so here is a solution.

Place a link in the "HTML head content" to a page in one of your Lotus Notes databases. In that database, create a page, treat the content as HTML and name the file using a .js extension. If necessary, pass all of the arguments in the call to that page. The JavaScript code below furthers explains the process.

Add this code to the form's "HTML head content" section:

create dynamic JavaScript in Notes Domino without formulas
(Click on code for enlarged view and script download.)

Next, create a "Computed Text" using this formula in the line that requires a parameter:

create dynamic JavaScript in Notes Domino without formulas
(Click on code for enlarged view and script download.)

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

This tip was submitted to the tip library by member Azeddine Taoufiqi. Please let others know how useful it is via the rating scale below. Do you have a useful Lotus Notes, Domino, Workplace or WebSphere tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.

Dig Deeper on JavaScript for Lotus Notes Domino



  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...