Quantcast
Channel: Dynamics User Group
Viewing all articles
Browse latest Browse all 15740

Esc has to be entered twice

$
0
0

Hi,

I hope I have not missed something obvious but here goes.

I have a new table to hold extended names attached to T18 : ExtAdd

From a menu in Customer Card:

OnPush:

IF NOT ExtAdd.GET("No.") THEN BEGIN

  ExtAdd.INIT;

  ExtAdd."Customer No." := "No.";

  ExtAdd.Name := Name;

  ExtAdd."English Name" := "Name 2";

  ExtAdd.INSERT;

END;

CLEAR(ExtAdd);

ExtAdd.GET("No.");

FORM.RUN(50002,ExtAdd);

After the form opens, the focus does not seem to be on the record so to close the form, I have to press Esc key twice.

How do I ensure the focus is on the record?

 


Viewing all articles
Browse latest Browse all 15740

Trending Articles