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?
Custom Templates
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Custom Templates
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
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
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.
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
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
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
Thank you - that helped me solve it.
The module was actually being referenced as mainModule_1 instead of mainModule
The module was actually being referenced as mainModule_1 instead of mainModule