Problem with code in onQueryClosePage trigger

poppinspoppins Member Posts: 647
edited 2013-10-08 in NAV Three Tier
Hi everyone,

I have added some code in the onQueryClosePage trigger in page 5708 (Get Shipment Lines).
IF CloseAction IN [ACTION::OK,ACTION::LookupOK] THEN
salesshipline.RESET;
CurrPage.SETSELECTIONFILTER(salesshipline);
IF  salesshipline.FINDFIRST THEN
REPEAT
      IF salesshipline."Num Facture en cours"<>'' THEN
      ERROR('Ce BL est déja généré dans la Facture %1',salesshipline."Num Facture en cours");
UNTIL salesshipline.NEXT=0;
CreateLines;
When I press escape to quit the page, the error message is displayed again and I am stuck in the page :mrgreen:

What shall I do to be able to quit the page when I press escape????

Comments

Sign In or Register to comment.