Page 1 of 1

[RPG]showing navigation menu programmatically

Posted: Thu Oct 06, 2016 6:37 pm
by MegumiSawada
Hi,

On online form, I think you can show the navigation menu programmatically as follows:

if (RequestACTION = 'XXXXXX');
RequestPROGRAM = 'SYS-EXIT';
RequestACTION = 'SYS-EXIT';
Iter;
endif;

Is there any way to show the navigation menu programmatically on offline form?
(when touching a button,etc...)

Best Regards,
Megumi Sawada

Re: [RPG]showing navigation menu programmatically

Posted: Fri Oct 07, 2016 7:19 am
by tsupartono
You can show the main menu by using the ClientCommand operation with Command = MAINMENU.
This works for both online & offline forms.

Please see below for more information:
http://www.longrangemobile.com/docs/lrp ... ommand.htm

You can also indirectly show the main menu (as a side effect, which is how you get the menu presented using SYS-EXIT) by closing the form. If there is no other form currently visible, you will get the main menu as well.
You can close a form by executing the CloseForm operation (works for both online & offline forms).
http://www.longrangemobile.com/docs/lrp ... seform.htm

Re: [RPG]showing navigation menu programmatically

Posted: Fri Oct 07, 2016 1:12 pm
by MegumiSawada
Hi Tony,

I have confirmed it works as expected.
Thank you!

Best Regards,
Megumi Sawada