Question:
Could we hook a double click event on a list entry in future release of Servoy?
Reason:
On some forms we have two lists, where the user can pick entries of one list and assign them to the other list (defining relations). The user can click on a button to move entries from one list to the other. It would be nice if he or she could do the same by double clicking on an entry.
All you need is a global date variable and a method similar like this:
var $old_click = new Date(globals.click);
globals.click = new Date();
var $dif = globals.click.valueOf() - $old_click.valueOf()
if ($dif < 200) {
//Do your stuff
}
Whenever the method is triggered twice in the last 200ms the code in the if-statement is executed.
Wouldn’t it be possible to offer an easier hook: onRecordDoubleClick?
It would be easier to use, I would have the guarantee that the user clicked twice on the same record and I’m on the right form directly. What is the objection?