$$viewtemplate for blaha

Here comes a small tip that been known for ages but still I meet people that’s not aware of it.

All web developers on the domino platform knows that an easy way to surround a view with some furniture is to create a form and name it “$$viewtemplate for MyView”. If you have three views, MyView1, MyView2 and MyView3 it’s easy to create a general form named $$viewtemplatedefault, that will work on all views that’s viewed over the web.

But if you have fifteen views and want three ways to present them? It’s possible to have the same alias on many views, this is not recommended if you are using the alias for lookups of course. By setting the same alias (myAlias) to five views you can the create a form named “$$viewtemplate for myAlias” and it will work on all views with that alias.

2 Comments

Peter GrohMay 20th, 2009 at 10:56

Hi Joachim,

this is indeed a great tip for webdevelopers. I have to say i haven t got the idea to manage it in such easy way.

Many thanks … cause after a couple of years developing domino for web i always get some stimulus !

JoachimMay 20th, 2009 at 11:55

Thanks, always fun to see how knowledge finds new targets!

Leave a comment

Your comment