[RPG]showing navigation menu programmatically

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

[RPG]showing navigation menu programmatically

Post 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
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: [RPG]showing navigation menu programmatically

Post 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
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: [RPG]showing navigation menu programmatically

Post by MegumiSawada »

Hi Tony,

I have confirmed it works as expected.
Thank you!

Best Regards,
Megumi Sawada
Post Reply