Page 1 of 1
Directly calling another screen/5250 menu via onClick button
Posted: 11 Sep 2023, 17:05
by jtaljaard
Subject explains it, I can't seem to get a button onClick event whereby I can directly call another screen or 5250 menu without referencing the commandline. Is this possible?
Re: Directly calling another screen/5250 menu via onClick button
Posted: 11 Sep 2023, 19:53
by Dino
While in aXes you are running in the web, you still are running a 5250 session.
So if you can get to a menu using a sequence of keys in a green screen, you can record the same sequence with the choreographer and execute it when needed with executechoreoname() script.
Usually that sequence will be something like pressing f21 to get a command line, or f10 to call the menu, then whatever needed, enter, option, etc. but your 5250 program have to support the handling of those keys.
If you want to have an external menu where each option is a different 5250 session or menu option you can do that as well, external to your axes session. See external hosting in the documentation.
But you cannot make axes return to a menu or command line if your 5250 Pegram don't have a way to do that. You still bind to the flow of your 5250 program.
You can call any batch program anytime in aXes but that won't affect your interactive session.
Re: Directly calling another screen/5250 menu via onClick button
Posted: 11 Sep 2023, 23:18
by jtaljaard
Tested the CHoreographer option and it works like a charm, thank you very much!
I don't suppose there is a way to call a page directly using 5250 commands. like CALL DEVMENUCL but on a push button, instead of referencing the CommandLine, etc., just a straight call function or must this be done with the choreographer?