Skin swap

Use this board to ask questions or have discussions with other Genie users.
Post Reply
k2R400
Profound User
Posts: 62
Joined: Sat Feb 18, 2012 12:03 pm
First Name: Patrick
Last Name: THOMAS
Company Name: Oo2
Country: France
Contact:

Skin swap

Post 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
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Skin swap

Post 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" });
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest