Hi! I have problem with $$ViewTemplateDefault. I have f.e. 20 views. I want to have two kind of tempalte: first for 10 view and second for other 10 view. Have I to do 20 $$ViewTemplate for view_name for one another view, or can I do only 2 $$ViewTemplate? How can I do this?
Subject: $$ViewTemplateDefault
Hi,
you can set a number of aliases for your view names using the | symbol. You would have your $$ViewTemplateDefault for the first 10 views, and a second view template with many form name aliases: $$ViewTemplate for view11 | $$ViewTemplate for view12… However, there is probably a limit to the size of the form name field. So you should consider to work with a common subform that you put into the different $$ViewTemplates.
Best regards
Mario Varchmin
Subject: RE: $$ViewTemplateDefault
Do you think, I should make 20 $$ViewTemplate for every view ?
Subject: RE: $$ViewTemplateDefault
The practical limit for a form name is only three “$$ViewTemplate for ViewName” aliases (maybe four if your view names are very short), so you can’t use just two. It’s easier to put everything you want to appear on the form on a subform, then create 20 forms – all you need to do is give them a name and put the subform on each.
Subject: RE: $$ViewTemplateDefault
I have the same scenario as you and here is how I solved it:
Use two view templates and name them whatever you want (I have samples below):
$$ViewTemplate for WebPrint
$$ViewTemplate for WebView
Now, on your first 10 forms, create an additional alias named WebPrint. On your second 10 forms, create an additional alias named WebView (I have samples below):
First 10 forms
frmOne | WebPrint
frmTwo | WebPrint
and so on…
Second 10 forms
frmEleven | WebView
frmTwelve | WebView
and so on…
That works beautifully for me. Hope it helps!