Page 1 of 1

Button onAction() on Android tablet

PostPosted: Sun Mar 03, 2019 2:52 pm
by lwjwillemsen
Servoy webclient 7.4.11 | Android 8.1.0 tablet / phone.

Problem steps:
1) Focus on form text field, the dataprovider is a form variable.
2) Change value text field.
3) Click a button somewhere else on the same form.

Problem:
The text field dataprovider value is not updated when running code in the onAction() of the clicked button.
The dataprovider is updated when leaving the onAction() method!
Also onDataChange() and onFocusLost() of the text field is not fired before the onAction() but afterwards!

No problem on IOS and Windows. More and more Android users report this problem!

Anyone any ideas?

Regards,

Re: Button onAction() on Android tablet

PostPosted: Thu Mar 07, 2019 7:28 pm
by lwjwillemsen
After internal testing we now see the same issue on the Ipad. :(

Regards,

Re: Button onAction() on Android tablet

PostPosted: Tue Apr 30, 2019 8:13 pm
by joe26
Had the same issue.

I had to process the data in onFocusLost().

Bluetooth and keyboard barcode scans were ending up incomplete with the onAction() script.

Setting the tab order worked for all but the last entry field, so an unused target text entry field was placed on the screen to force tabs to the initial entry field.

This was for IOS entries that lost focus after entries and the screen keyboard went away.

--Joe.