Hide Navigation in Choreographer

Use this Forum to post your “How to …” questions about your use of aXes. This is not a technical support forum. Both the aXes Support Team at LANSA and other aXes customers may answer your questions. LANSA cannot guarantee the accuracy of any information posted by customers.

Moderator: jeanmichel

Post Reply
User avatar
Dino
Posts: 88
Joined: 19 May 2017, 08:29

Hide Navigation in Choreographer

Post by Dino »

Lets say I have 3 screens, with information in 3 of them that I want to show in the first one. So I create a choreography that visit all 3 screens then come back to the first one. In each of the successive screens we grab the information that we want an put in temporary fields (sessionStorage in this sample code).

Question... Is there any way to hide the screen/navigation when the choreographer go shopping, then show it again after it finish? like "HIDESCREEN(); " "SHOWSCREEN(); " or something like that so the user don't have to see all this navigation? While fast, still feels like the car is fighting for the control of my steering for a minute.... not an easy feeling.... yet. lol

Code: Select all

if (sessionStorage.getItem('NUMBER3') === null) {
   /* we go to visit several screens to grab the information we need */
   /* hide screen */
   EXECUTECHOREONAME("GetInfFromOtherScreens");
   /* show screen */
}

/* now we show what we got... */
var res = "I got this NUMBER1:" + sessionStorage.getItem('NUMBER1')
+ " Numero2:" + sessionStorage.getItem('NUMBER2') 
+ " Numero3:" + sessionStorage.getItem('NUMBER3');
FIELDS("LABEL1").setProperty("text", res );
FIELDS("LABEL1").refresh();
Fairdinkum
Posts: 128
Joined: 24 Jul 2017, 17:02

Re: Hide Navigation in Choreographer

Post by Fairdinkum »

Hi Dino,
How about importing the attached auto-gui rule to hide screens while EXECUTECHOREONAME() is beeing executed. As you can see from the video below, Row HTML extension covers the navigation.
https://drive.google.com/file/d/1wlTSb_ ... sp=sharing

*Note*
It reffers internal variables as follows.
  • AXES.UI.ChoreoTab.mode
  • AXES.UI.ChoreoTab.data.commands[AXES.UI.ChoreoTab.data.curIdx]
Regards,
Hide
Attachments
axautoguirules(hideScreen).zip
(820 Bytes) Downloaded 483 times
Fairdinkum
Posts: 128
Joined: 24 Jul 2017, 17:02

Re: Hide Navigation in Choreographer

Post by Fairdinkum »

It's me again.
I've updated the auto-gui rule. Please try using this one. Thanks.

Regards,
Hide
Attachments
axautoguirules(hideScreen)_v2.zip
(831 Bytes) Downloaded 487 times
User avatar
Dino
Posts: 88
Joined: 19 May 2017, 08:29

Re: Hide Navigation in Choreographer

Post by Dino »

Thank you Fdk, I can see the rule is active and works, but basically is introducing another screen between the navigation. I can still see all the screens plus now one more in the transition with the "Please wait..." message.
Fairdinkum
Posts: 128
Joined: 24 Jul 2017, 17:02

Re: Hide Navigation in Choreographer

Post by Fairdinkum »

Hi Dino,
See the attached. In my test environment, all the screens while EXECUTECHOREONAME() is beeing executed are hidden under the "Please wait..." element. If you tested it in dev mode, try it again in user mode instead please?

Regards,
Hide
Attachments
Choreo_test_20210709a.pdf
(1.47 MiB) Downloaded 499 times
Post Reply