Announcements
Hi Experts,
I want to create a new field called delivery description on sales order lines. How can I bring the description from delivery terms which is on sales order header view as shown in attached image. Please help thanks in advance.
Regards
Thanks Girish S for your valuable time and effort
Regards
Hello, you can write a display method on table (using extension) and add this on form as field.
Yes, above code will assign only the delivery term from header to line. If you want a description you can add, select statement to get the description.
Public void initvalue() { DlvTerm term; //instead of select you can also find.. select firstonly * from term where term.Code == SalesTable.DlvTerm; salesLine.DeliveryTermDescription = term.Txt; }
Thanks,
Girish S.
Hi Girish S,
Thank you for replying but I just want description from delivery terms not all the fields. So, do i have to add something else too?
Regards
Hi ax tech,
You need to write the code on the initValue of the SalesLine DataSource. So, when you create new line Delivery terms will be auto populated from the header.
Public void initvalue() { salesLine.DeliveryTems = SalesTable.DlvTerm; }
Thanks,
Girish S.
André Arnaud de Cal...
294,165
Super User 2025 Season 1
Martin Dráb
232,968
Most Valuable Professional
nmaenpaa
101,158
Moderator