double click event

Hi

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.

Thank you and regards
Birgit

This can be done using a global method (we use it on all of our table views). There is a sample method here on the forum somewhere…

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.

Thank you, good to see that it can be done.

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?

Regards
Birgit

I can’t think of any objection.

This one probably never made it into a feature request since everybody is already used to the ‘workaround’.

Time for you to make a feature request (or check it) Birgit ;)