(RDMLX) Back button on Android - offline

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

(RDMLX) Back button on Android - offline

Post by MegumiSawada »

Hi,

The customer uses Android devices.
They would like to detect Back button on Android is tapped and invoke some action.
I found the similar topic which is talking about online form(http://longrange.lansa.com.au/viewtopic ... 406&p=1251).
Is it possible to implement this on offline formview as well?

Best Regards,
Megumi Sawada
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: (RDMLX) Back button on Android - offline

Post by tsupartono »

Hi Megumi,
The same technique (as described in that post) should work for offline forms.

You can directly link your back button menu item with the target (offline) form, or alternatively you can send a PerformAction operation.
If you are sending a PerformAction operation, your offline form needs to handle the 'OnAction' event (see the documentation page for Form.OnAction).
Generally you would have an ECL script handling the 'OnAction' event (by hooking up the 'OnAction' event with an ExecScript operation).
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: (RDMLX) Back button on Android - offline

Post by MegumiSawada »

Hi Tony,

Thank you!
I'll check Form.OnAction.

Best Regards,
Megumi
Post Reply