Button onAction() on Android tablet

Using Servoy to administrate the content of your website? Discuss all webrelated Servoy topics on this forum!

Button onAction() on Android tablet

Postby lwjwillemsen » Sun Mar 03, 2019 2:52 pm

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,
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 625
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: Button onAction() on Android tablet

Postby lwjwillemsen » Thu Mar 07, 2019 7:28 pm

After internal testing we now see the same issue on the Ipad. :(

Regards,
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 625
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: Button onAction() on Android tablet

Postby joe26 » Tue Apr 30, 2019 8:13 pm

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.
joe26
 
Posts: 113
Joined: Wed Jun 19, 2013 10:30 pm


Return to Web Development

Who is online

Users browsing this forum: No registered users and 1 guest