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 SearchDomino.com:
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 SearchDomino.com 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

SearchWindowsServer

Search400

  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/Search400.com 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

SearchDataCenter

SearchContentManagement

Close