Quantcast
Channel: Dynamics 365 Business Central/NAV User Group
Viewing all articles
Browse latest Browse all 11285

Forum Post: RE: How to create a error message on post action of journal voucher(16571) if line narration and voucher narration are empty

$
0
0
Hi, i have tried with the following code but it is not working properly , it is always throwing error for first line in journal voucher (p-16571). "Gen Journal Narration".RESET; IF "Gen Journal Narration".Narration= '' THEN BEGIN REPEAT SETRANGE("Document No."); "Gen Journal Narration".SETRANGE("Gen Journal Narration".Narration); "Gen Journal Narration".FINDFIRST; UNTIL NEXT = 0; ERROR('Verify that Line Narration and Voucher Narration fields are entered'); END;

Viewing all articles
Browse latest Browse all 11285

Trending Articles