Current Menu Item selected

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
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Current Menu Item selected

Post by stevec »

How can I retrieve the current menu item selected? It is known to longrange as when you click home the menu comes up and current item is grayed to show which one you are in. I would like to programatically access this.

Would make it easier to determine where I go on a back button (for form called from multiple menu items nested). Currently I save caller to determine this but if I get 2 levels deep I overlay it. If this was available I won;t have to add a 2nd prior caller.
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: Current Menu Item selected

Post by tsupartono »

There is no way to tell the currently selected menu item.

We can enhance LongRange so that you can tell the last executed menu item (there is no inherent concept of current menu item as a form view is not bound to a menu item).

If your navigation is stack-like in nature, have you had a look at opening your subforms as child forms (forming a stack of forms - eliminating the need for you to maintain the navigation history as LongRange will do this for you). But obviously this wouldn't work if your navigation is more linear in nature.

To open a form as a child form you'd need to use either PerformAction or OpenForm operation with PresentMode set to Stack
http://www.longrangemobile.com/docs/lan ... action.htm
Post Reply