Directly calling another screen/5250 menu via onClick button

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
jtaljaard
Posts: 11
Joined: 06 Sep 2023, 18:51

Directly calling another screen/5250 menu via onClick button

Post 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?
User avatar
Dino
Posts: 88
Joined: 19 May 2017, 08:29

Re: Directly calling another screen/5250 menu via onClick button

Post 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.
jtaljaard
Posts: 11
Joined: 06 Sep 2023, 18:51

Re: Directly calling another screen/5250 menu via onClick button

Post 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?
Post Reply