(RDMLX) Web View Menu Control

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
edwardtn
Posts: 33
Joined: Fri Aug 28, 2015 11:53 pm

(RDMLX) Web View Menu Control

Post by edwardtn »

Is there an function or operation on the LONGRANGE form object that can be run via JavaScript to show the system menu?

Use case: Offline application exclusively use of WebViews serving local html, css, and js and local database. I am considering removing the title bar as long as I can programatically dsiplay the system menu.

Thanks in advance,

Edward
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: (RDMLX) Web View Menu Control

Post by tsupartono »

If by "system menu", you mean the LR Settings (where you configure profiles etc), yes you can.

Have a look at the "ClientCommand" operation in the doco below:

http://www.longrangemobile.com/docs/lrp ... ommand.htm

Please see code example below how to invoke from JavaScript.

Code: Select all


var options =
{
    operation:
    {
        type: "ClientCommand",
        command: "SETTINGS"
    }
};
LONGRANGE.Form.runOperation(options);

Let us know how you go with this.
edwardtn
Posts: 33
Joined: Fri Aug 28, 2015 11:53 pm

Re: (RDMLX) Web View Menu Control

Post by edwardtn »

Hi Tony,

I was thinking of how to display the application main menu...but this may offer an even better alternative.

Thanks,

Edward
Post Reply