Maybe I dont understand the new layout structure of the framework, but this is what I want to do:
All programs have a default layout that is a table view (template 1). Each record has a showDetail button to show the correct detail layout (could be any of the other templates with tabs)
So I have myProgram with a default layout myProgram_list and I have another layout myProgram_detail. What I dont understand is how do I activate the detail layout? I cannot find a way in the source to find the layout by name?
Or do I have to create another program that has the detail layout as default? (I dont think this is the correct solution because that would remove the purpose of having separate layouts and programs)
For testing i tried the following:
globals.nav.openNewTab = 1
forms[globals.nav.mainFormName].layoutSwitch(event,"9EF0AD1B-7820-4BEF-9F9C-367C6A3E1CB8")
It does open a new tab with the detail form, but not with the correct template form it uses template 1 instead of template 3 as defined in this layout.