Hi ,
I need validate a field in Sales Invoice Line .
How can get the value of a field line by line and check that it is not empty ?
Thanks
Hi ,
I need validate a field in Sales Invoice Line .
How can get the value of a field line by line and check that it is not empty ?
Thanks
add setrange("Document Type",....) and setrange("Document No.",......) to only loop the record you want.
docs.microsoft.com/.../devenv-setcurrentkey-setrange-setfilter-getrangemin-and-getrangemax-methods
SalesLine: Record "Sales Line";
CurrPage.SalesLines.Page.GetRecord(SalesLine);
if SalesLine.FindSet then
repeat
Message(SalesLine.Description);
until SalesLine.Next = 0;
im do this but i have only 2 lines in subform and show a lot of Message , how to take only my 2 lines ?
You can use findset to loop the record and check the field
But how to make the loop to check line by line specific field?
You can add the checking OnAfterModify
YUN ZHU
313
Super User 2025 Season 1
Mansi Soni
242
Gerardo RenterÃa Ga...
226
Most Valuable Professional