Calling Fix>Inspect From Double Click

nari

Member
Hello Group
How can I call a "Fix/Inspect" form from a "Find/Browse" form when I double click on a grid line in the "Find/Browse" form.
I have a rox exit which calls the "Fix/Inspect" but I also want to be able to just double click on a grid line.

Thanks
Brett
 
Double-Clicking on a find-browse form is the same as high-lighting the row and pressing the 'Select' button. Put the call to your Fix-Inspect form in the 'button clicked' ER section in the 'Select' button
 
Hi nari, Chris,

Chris suggestion is right.

You can place the Fix/Inspect call onto the Press Buton event of HC Select, instead of a new Row Exit.

Scenario A:

If the Select is good for you, but you want keep your Row Exit too, then simply place a PressButon(HC Select) ER line onto the event of Row Exit. So, both Row Exit (Select and the Custom) will have the same functionality.

I applied this method many times on Find/Browse forms.

Scenario B:

If your Select has an other action to do, than the user defined Row Exit.

Simply define a variable: frm_SelectFromOutside_EV01.
Initialize the variable in one of the Form Initialization event:
frm_SelectFromOutside_EV01=0

In the user define Row Exit:
frm_SelectFromOutside_EV01=1
PressButon(HC Select)
frm_SelectFromOutside_EV01=0

In the Select you can decide, which action to do, based on the flag.

Hope, this helps.

Regards,

Zoltán
 
Back
Top