Custom Templates

Find and share HowTos to various installations / configurations!
5 posts • Page 1 of 1
mhargreaves
Posts:84
Joined: Thu Nov 11, 2010 12:31 pm

Custom Templates

Post by mhargreaves »

I have created a custom template layout for our system. It is based on TEMPLATE1 and consists of a naviModule, mainModule and infoModule.

I have changed the naviPanel to contain our custom buttons - what control function do I need to call when clicking on the button to load a particular panel into the mainModule area?

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Custom Templates

Post by leoknipp »

If you want to load a panel for a specific module you can use the CTRL function RootPanelOnModule().
For the panel topology there are references available which can be used for the Panel-Topology, e.g. panels/objects/STD_PANELS/PT_sum2.pnl

Best Regards
Leopold Knipp
Senior Support Specialist

mhargreaves
Posts:84
Joined: Thu Nov 11, 2010 12:31 pm

Re: Custom Templates

Post by mhargreaves »

I've tried the RootPanelOnModule but it doesn't work for me- I'm not sure what I am doing wrong.

When I use the PT_sum2.pnl object, the panel appears in a new module rather than the embedded module from the template.

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Custom Templates

Post by leoknipp »

You a probably using different module names and therefore a new module is opened when using the standard object.
With the function getVisionNames() you can get all Vision module names which are currently opened.

Best Regards
Leopold Knipp
Senior Support Specialist

mhargreaves
Posts:84
Joined: Thu Nov 11, 2010 12:31 pm

Re: Custom Templates

Post by mhargreaves »

Thank you - that helped me solve it.

The module was actually being referenced as mainModule_1 instead of mainModule

5 posts • Page 1 of 1