iPad and Changing Inputs

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

iPad and Changing Inputs

Postby john1598360627 » Tue Apr 19, 2022 1:23 am

So we are trying to get the NG client to work on mobile devices.

iPad and Android.

However we encountered a problem with the NG Grid, and the edit type. For a column, an edit type can be set. We have one column set to TEXTFIELD, which allows the user to modify the value of that record's column directly on the grid. The input that Servoy uses to activate this edit type is *Double Click*.

However, this causes a conflict on mobile devices. For example, on the iPad's IOS there's a built in 'zoom in' feature when you double tap. This causes Double Click inputs to be eaten up by the IOS, thus the NG client can never read it. While Android doesn't seem to have that zoom in feature, double click also doesn't work on there.

Questions

1. Is there any way of changing the input for the NG Grid edit type TEXTFIELD? If this was a single click input, then the problem would be fixed, since it's only Double Click that isn't working on mobile devices.

2. In this thread, about creating shortcuts, it was mentioned that the browsers default action consume certain inputs. And that there was a way of overriding this behavior when creating a shortcut. Can this same concept be applied to other aspects of Servoy, like in this case of TEXTFIELD edit?

viewtopic.php?f=22&t=23479&p=123375#p123369
john1598360627
 
Posts: 169
Joined: Tue Aug 25, 2020 3:03 pm

Re: iPad and Changing Inputs

Postby sean » Tue Apr 19, 2022 9:27 pm

Hi John,

I wonder if setting this property doesn't do the trick?
https://www.ag-grid.com/javascript-data ... eClickEdit

You would need to pass the config options in (ideally on startup, because this would be a global configuration)
https://github.com/Servoy/aggridservices

Something like this ought to work:
Code: Select all
function onSolutionOpen(arg, queryParams) {
   plugins.ngDataGrid.columnOptions = {singleClickEdit:true};
}
Software Engineer
Servoy USA
sean
 
Posts: 370
Joined: Mon May 21, 2007 6:26 pm
Location: USA

Re: iPad and Changing Inputs

Postby john1598360627 » Wed Apr 20, 2022 3:05 am

sean wrote:Hi John,

I wonder if setting this property doesn't do the trick?
https://www.ag-grid.com/javascript-data ... eClickEdit

You would need to pass the config options in (ideally on startup, because this would be a global configuration)
https://github.com/Servoy/aggridservices

Something like this ought to work:
Code: Select all
function onSolutionOpen(arg, queryParams) {
   plugins.ngDataGrid.columnOptions = {singleClickEdit:true};
}

Thank you! I didn't realize all those column options were available. Single click is working! I'll report if it fixes the problem on iPad too.

Edit: The fix worked, thank you again!
john1598360627
 
Posts: 169
Joined: Tue Aug 25, 2020 3:03 pm


Return to Programming with Servoy

Who is online

Users browsing this forum: Google [Bot] and 13 guests

cron