Page 1 of 1

Capture a Double Click

Posted: Tue May 03, 2011 9:11 am
by devinst
I have two list box and would like to transfer data from one list box to the other on a double click. Can someone tell me how to capture the double click and have it pass control back to the RPG program?

Re: Capture a Double Click

Posted: Tue May 03, 2011 1:15 pm
by David
Try putting a button onto the screen and setting it to hidden. Give the button a unique id (using its "id" property), maybe "btnDblClick".

Then, you can set the "ondblclick" event of the list box to this:

Code: Select all

pui.click("btnDblClick");
This will simulate a click on the button, which will submit the screen to the server. You can also bind a response indicator to the button, if you want, to distiguish this submit from some other way of submitting the screen.