Working with the "JavaScript" form

The "JavaScript" form Like a lot of Notes Web developers, I store my JavaScript code in documents where it can be accessed by multiple elements of the database. By keeping my JavaScript as separate documents from forms, I have a means for quickly updating the code without requiring a design refresh. In addition, I can make the changes with only Editor access, which is the highest level of access some developers are allowed once their databases are in a production environment. I'll summarize my method here. Create a form named "JavaScript." On this form, you will need two fields: Name and Code. The Name field is an editable text field where you will name the document. This name will be used by the @DbLookup formulas in our forms to find the documents. The Code field is an editable text field where you will place your JavaScript. To display JavaScript documents, I usually create a specific view just for them. You will probably want to hide this view to keep accidental edits and deletions from happening. Create a view now and name it whatever you like - just make sure that the alias is "JavaScript," because that is the name we'll use in the code to reference the view. The first column will need to equate to and be sorted by the value of the Name field, so that we can find the document when we perform a lookup. There is no need for any other columns in the view. Remember that the $$HTMLHead fields on the My Reports form and the $$ViewTemplateDefault form will be using @DbLookups to retrieve the JavaScript code from documents that are displayed in this view. For more information visit The View.
This was last published in February 2000

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.




  • 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 ...