$$viewtemplate
Though my favorite application server is Lotus Domino I realize that I haven’t posted much domino-centric stuff lately. So here you are:
The $$viewtemplate is a rather amazing thing. It’s mainly a form that wraps around a view when the user accesses the view, but the usage can be very flexible. Here are three tips & tricks I’ve been using over the years:
- Call it “$$viewtemplate for HTML” and have many views having the alias “HTML”. This usually reduces the numbers of $$viewtemplate forms in the database.
- Have a “$$viewtemplate for JSON” (or similar name) which wraps around a view that is delivering JSON data. The $$viewtemplate can then terminate that stupid empty record that is started at the end of the last line in the view.
- In the $$viewtemplate you can have computed fields that uses the @viewtitle function if you are using the ‘alias system’ in the first point. This makes it possible to do some customization; headings for example.
November 14th, 2008 in
Computerstuff, English | tags: $$viewtemplate, development, domino, lotus, lotus domino

Stumble It!
any great example for that JSON view template?