Hi,
I want to use a Variable javascript from one screen to another. Can you help me please ?
Variable javascript from one screen to another
-
- Profound User
- Posts: 21
- Joined: Fri Jun 26, 2015 7:49 am
- First Name: Fadiga
- Last Name: Mamoud
- Company Name: Allianz Africa Services
- Zip / Postal Code: 00225
- Country: Ivory Coast
- Contact:
-
- New User
- Posts: 16
- Joined: Mon May 08, 2017 11:51 am
- First Name: Lillie
- Last Name: Yarbrough
- Company Name: Profound Logic
- Contact:
Re: Variable javascript from one screen to another
Hi Mamoud,
Could you give us more information about what you'd like to accomplish? What will you be using the variable for? The more information we have about this, the better we can help with a solution.
Thanks!
--Lillie
Could you give us more information about what you'd like to accomplish? What will you be using the variable for? The more information we have about this, the better we can help with a solution.
Thanks!
--Lillie
-
- Profound User
- Posts: 21
- Joined: Fri Jun 26, 2015 7:49 am
- First Name: Fadiga
- Last Name: Mamoud
- Company Name: Allianz Africa Services
- Zip / Postal Code: 00225
- Country: Ivory Coast
- Contact:
Re: Variable javascript from one screen to another
I want to move from one skin to an other. I use the javascript
to change first skin myskin. but I want to return to skin myskin using a variable javascript and the variable
is undefined in the second screen
Code: Select all
pui.refresh({ skin: "myskin1" });
Code: Select all
var skinName = pui.skin;
- Emily
- Profound Logic Staff Member
- Posts: 89
- Joined: Tue Jun 21, 2016 8:30 am
- First Name: Emily
- Last Name: Seage
- Company Name: Profound Logic
- Contact:
Re: Variable javascript from one screen to another
Just for some clarification on what you're wanting to accomplish here, are you saying that you want to change Genie skins between screens? For example, screen #1 would use skin 'myskin1' and then screen #2 would use skin 'myskin2'? Or is there something else you're wanting to do? We want to make sure we understand exactly what you're wanting so that we can help with finding a solution.
Thanks!
--Emily
Thanks!
--Emily
Emily Seage
Support Team Lead
Support Team Lead
-
- Profound User
- Posts: 21
- Joined: Fri Jun 26, 2015 7:49 am
- First Name: Fadiga
- Last Name: Mamoud
- Company Name: Allianz Africa Services
- Zip / Postal Code: 00225
- Country: Ivory Coast
- Contact:
Re: Variable javascript from one screen to another
yes !For example, screen #1 would use skin 'myskin1' and then screen #2 would use skin 'myskin2'.
-
- 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: Variable javascript from one screen to another
Changing skins is very expensive in terms of performance. It involves wiping out everything in the current browser session, and re-downloading it from the server. I would never do that on a per-screen basis, unless this is a very unusual screen that will only be used very rarely.
Likewise. the "normal" way of saving a variable across screens will not work because you are wiping out everything in the session. So you will need to use something like the browser's localStorage to save your variable, and you will need to restore it when you resume.
Please explain why you want to switch skins on a per-screen basis, so that we can consider if there's a better way to do it.
Likewise. the "normal" way of saving a variable across screens will not work because you are wiping out everything in the session. So you will need to use something like the browser's localStorage to save your variable, and you will need to restore it when you resume.
Please explain why you want to switch skins on a per-screen basis, so that we can consider if there's a better way to do it.
-
- Profound User
- Posts: 21
- Joined: Fri Jun 26, 2015 7:49 am
- First Name: Fadiga
- Last Name: Mamoud
- Company Name: Allianz Africa Services
- Zip / Postal Code: 00225
- Country: Ivory Coast
- Contact:
Re: Variable javascript from one screen to another
I have a program
menu.rpgle (skin)
http://myi//profoundui/genie?skin=skin.
Option 1 and 2 are two differents applications and I want to call them in menu.rpgle
menu.rpgle (skin)
assume that i select option 1 and i do my work and i return to menu.rpgle is still like this http://myi//profoundui/genie?skin=skin1 . and i would like this urlFM application
ROI option 1 (skin1)
TOI option 2 (skin)
Choice:
http://myi//profoundui/genie?skin=skin.
Option 1 and 2 are two differents applications and I want to call them in menu.rpgle
-
- 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: Variable javascript from one screen to another
You can run as many applications in a single skin as you like. There is no need to switch skins to change applications.
-
- Profound User
- Posts: 21
- Joined: Fri Jun 26, 2015 7:49 am
- First Name: Fadiga
- Last Name: Mamoud
- Company Name: Allianz Africa Services
- Zip / Postal Code: 00225
- Country: Ivory Coast
- Contact:
Re: Variable javascript from one screen to another
Of course, except that in our case there are a dozen options and the ROI option is very special. These are screens where all the elements are textbox. So you have to do it separately.
Who is online
Users browsing this forum: No registered users and 5 guests