How to select the screen where a certain panel is diplayed

Find and share HowTos to various installations / configurations!
5 posts • Page 1 of 1
Romero
Posts:27
Joined: Wed Jul 19, 2017 9:24 am

How to select the screen where a certain panel is diplayed

Post by Romero »

For example, i got 4 different screens. I need to display 'Alarm table' in the first screen and in the rest of the screens, i can select which panel i want to display.

Can i set the screen where a panel is showed? Apart from the Panel topology because those functions are a little bit complicated and we would need to modify them.

If yes, which version should we use from the 3.15/3.16?

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

Re: How to select the screen where a certain panel is diplayed

Post by leoknipp »

When using the function RootPanelOnModule() you can define in which module a panel shall be opened.
You just need to know the module names to be able to open the panel on a specific screen.

Best Regards
Leopold Knipp
Senior Support Specialist

Romero
Posts:27
Joined: Wed Jul 19, 2017 9:24 am

Re: How to select the screen where a certain panel is diplayed

Post by Romero »

I may have gived the wrong information about what i am trying to achieve.
So i use RootPanelOnModule() using the name of the panel to be shown and the name of the module in which it will be shown. But how do i select the screen where the module will be displayed?
For example:
- On screen number 1, moduleName = "Module_1", panelName = "Panel_1"
- On screen number 2, moduleName = "Module_2", panelName = "Panel_2"
- On screen number 3, moduleName = "Module_3", panelName = "Panel_3"

I have no clue if i need to set any 'Option' on the UI manager or a config entry and what kind of functions should i use.

Thank you for your quick support!
Best Regards

EDIT:
Each Panel must be shown in a fullscreen Module

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

Re: How to select the screen where a certain panel is diplayed

Post by leoknipp »

When using the functions ModuleOn() or ModuleOnWithPanel() you can define where the module shall be opened.
The screen size and the number of screens you can get by using the functions getScreenCount() and getScreenSize(). Then you can calculate where the modules need to opened to be displayed on the correct screen.

Best Regards
Leopold Knipp
Senior Support Specialist

Romero
Posts:27
Joined: Wed Jul 19, 2017 9:24 am

Re: How to select the screen where a certain panel is diplayed

Post by Romero »

That is the solution.
I was thinking about using somehow the screenNum and the only way is playing with the position.

Thank you Leopold
Best Regards

5 posts • Page 1 of 1