Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Double Click event in Module Pool

Former Member
0 Likes
806

Hi All,

I have 3 Text boxes placed on screen 100. Now I want to activate double click event on only one text box.

3 Text boxes are txt1, txt2 and txt3.

I have assigned Attribute 'Respond to double click' to txt1 and I have also set the GUI Status F2 'PICK'.

Now the problem that I am facing is whenever I double click on txt1 the program is working fine but this event works for txt2 and txt3 also which I don't want.

Can anyone provide the solution,

Thankx in Adv.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
550

Hi Sanjay,

What you have done is absolutely fine.

Just add the code to check for the input box on which the double click was performed.

<b>IN THE PAI:</b>

<b>GET CURSOR FIELD</b> tfield.

-> This statement captures the field name on which the user action (in this case the double click) was performed.

<b>IN THE PBO:</b>

Have a check for the field on which the double click was performed.

<b>CASE OKCODE.</b>

<b>WHEN 'PICK'.</b> <i>" The value of Okcode you have set in the pf-status</i>

<b> IF </b>tfield<b> = 'TEXT1'.</b> <i>"Use the name of text box where you have set 'respond to double click'</i>

<i><code for whatever you need to perform></i>

<b>ENDIF.</b>

<b>ENDCASE.</b>

Hope this solves your problem!

<i><b>*Reward Helpful Answers*</b></i>

Regards,

<b>Naveenan</b>

2 REPLIES 2
Read only

Former Member
0 Likes
551

Hi Sanjay,

What you have done is absolutely fine.

Just add the code to check for the input box on which the double click was performed.

<b>IN THE PAI:</b>

<b>GET CURSOR FIELD</b> tfield.

-> This statement captures the field name on which the user action (in this case the double click) was performed.

<b>IN THE PBO:</b>

Have a check for the field on which the double click was performed.

<b>CASE OKCODE.</b>

<b>WHEN 'PICK'.</b> <i>" The value of Okcode you have set in the pf-status</i>

<b> IF </b>tfield<b> = 'TEXT1'.</b> <i>"Use the name of text box where you have set 'respond to double click'</i>

<i><code for whatever you need to perform></i>

<b>ENDIF.</b>

<b>ENDCASE.</b>

Hope this solves your problem!

<i><b>*Reward Helpful Answers*</b></i>

Regards,

<b>Naveenan</b>

Read only

former_member196299
Active Contributor
0 Likes
550

Hi Sanjay ,

You have got a right answer above. You can assign function code 'PICK' in the

PF STATUS and then assign this to a pf key ..finally handle the code .

regards,

Ranjita