Page 1 of 1

Skin swap

Posted: Wed May 17, 2017 1:48 am
by k2R400
Hello,

A customer have 2 applications accessible from the same menu.
We need to reposition some constants on the screen with a script.
But each application does not have the same presentation, so there will be two different skins.
Question : How to swap beetween skins ?

Thank you

Re: Skin swap

Posted: Wed May 17, 2017 3:09 am
by Scott Klement
Swapping skins is an "expensive" (in terms of performance) thing to do. The skin is actually what starts Genie and makes it all work. You could say that Genie runs inside of the skin. So in order to change the skin, you have to reload everything from the server.

So, I don't recommend swapping skins. It's better to modify one skin so that it can handle two different types of formatting.

However, if you really want to try swapping them, it can be done from JavaScript by coding:

Code: Select all

pui.refresh({ skin: "skin-name-here" });
For example, to swich to the hybrid skin:

Code: Select all

pui.refresh({ skin: "hybrid" });