We want to support dblclick on the tableviews, because our users are expecting that functionality.
The suggested solution is to replace all fields with labels, because that component has an event for dblclick.
In my opinion that is not a desired solution:
- labels have no valuelist property
- we will have to create extra forms for find actions, because we have no fields anymore.
(https://support.servoy.com/browse/SVY-5281)
Fields do have an onAction event, maybe we can use that to simulate a dblclick:
- first click: store timestamp of click and record id
- second click: if timestamp is within 500 ms on the same record id than perform dbl click action.
issues with this approach:
- fields have to be non-editable.
Note: there is an issue when the form is set to readOnly, the onclick does not fire. (https://support.servoy.com/browse/SVY-5302)
- not sure how this will work on a webclient. I know both clicks will result in a request to the server, so with a slow connection this might not work.
I'm curious if anyone tried this before and if there are reasons for not using this. And maybe there are other solutions out there.