I have put a code on Lookup of a customised table.
IF Balance > Customer."Credit Limit (LCY)" THEN
ERROR(Insert another customer name);
CustName:='';
After prompting the error message, the field CustName should be cleared automatically.
I have assigned it to an empty string but it is not being cleared. I have even used the CLEAR(CustName) too.
Please help..
Thanks
Liizz
0
Comments
IF Balance > Customer."Credit Limit (LCY)" THEN BEGIN
CustName:='';
ERROR(Insert another customer name);
END;
If you want to proceed further use Message..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
The code which I shared, it is showing the error message but it continues further processing.
Also, I commented the part 'CustName:='';'. It allows processing after the error message.
Can somebody please clarify me?
Thanks
Liizz
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Definitely some problem in your analysis. The code is not continuing after the ERROR. If yes, whole NAV will broke... :-) May be in the real code you have message and not error...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Software Design Engineer II
Dynamics NAV Office 365
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.