Program Logic Triggered by Double Click

Is there anyway to trap the user’s Double Click? For Example, when a user is on a Sales Invoice Screen in The Sales Lines, they would like to Double click on a line and bring up the Card Form associated? Any Ideas or am I hoping for too much VB? Thanks Darren Bezzant Development Specialist dbezzant@csbsystems.com CSB Systems 1560 - 333 11th Avenue SW Calgary, Alberta T2R 1L9 Tel: (403) 233-2955 Fax: (403) 233-2957

VB there can’t help, you are not able track fin.exe events. But you can do it in C/AL. Put button in form, set property Default to Yes. All double clicks pushing default button.

quote:


Originally posted by db: All double clicks pushing default button.


And all ENTER’s I think :slight_smile:

That poses one obvious problem in that the user could be using ENTER to navigate through the Line record. Darren Bezzant Development Specialist dbezzant@csbsystems.com CSB Systems 1560 - 333 11th Avenue SW Calgary, Alberta T2R 1L9 Tel: (403) 233-2955 Fax: (403) 233-2957

I don’t think so. Lets teach accountants use Tab, like all windows users do.

Wouldn’t that be nice:) Is there a way to tell which field my cursor is in when I hit Enter/Double Click? Darren Bezzant Development Specialist dbezzant@csbsystems.com CSB Systems 1560 - 333 11th Avenue SW Calgary, Alberta T2R 1L9 Tel: (403) 233-2955 Fax: (403) 233-2957

In table are var called CurrFieldNo. Maybe it helps you.

Not anyway I can see, it isn’t available on the rec(). Darren Bezzant Development Specialist dbezzant@csbsystems.com CSB Systems 1560 - 333 11th Avenue SW Calgary, Alberta T2R 1L9 Tel: (403) 233-2955 Fax: (403) 233-2957

This are in TABLE not in Form. Go to table and you will find behind Rec.

I understand that, but I don’t think it will help me. I think I can live without it, but I would like to know whether the system can tell where I am on a form.

quote:


Originally posted by db: In table are var called CurrFieldNo. Maybe it helps you.


Look at “Sales Line” Function for example SelectItemEntry(CurrentFieldNo : Integer) // Used as a condition statement IF CurrentFieldNo = FIELDNO(“Appl.-to Item Entry”) THEN // You could use the same logic but what event would trigger the function? WhichField(CurrentFieldNo : Integer) Case CurrentFeildNo of 6: MESsAGE(‘%1’,“No.”); 7: MESSAGE(‘%1’,“Location Code”); END; David Cox MindSource (UK) Limited Navision Solutions Partner Email: david@mindsource.co.uk Web: www.mindsource.co.uk

quote:


// Used as a condition statement IF CurrentFieldNo = FIELDNO(“Appl.-to Item Entry”) THEN // You could use the same logic but what event would trigger the function?


This was/is my dilemma. Right now my prototype allows the user to click anywhere on the line. This still has the problem with the ENTER key. If I could find a way to know where I was clicking, I could probably then only trigger my logic when they click in a certain field. Oh well, I think this will have to be chalked up to User Training for now. Cheers Darren Bezzant Development Specialist dbezzant@csbsystems.com CSB Systems 1560 - 333 11th Avenue SW Calgary, Alberta T2R 1L9 Tel: (403) 233-2955 Fax: (403) 233-2957