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.

This was last published in October 2008

Dig Deeper on JavaScript for Lotus Notes Domino

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com'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 ...

SearchDataCenter

SearchExchange

SearchContentManagement

Close