Page 1 of 1

Current Menu Item selected

Posted: Thu Jul 21, 2016 6:25 am
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.

Re: Current Menu Item selected

Posted: Fri Jul 22, 2016 7:24 am
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