Hello,
I am trying to add a 'Test' column of decimal type to the ' Sales shipment lines' .
I have written the following code to add the column in sales shipment lines by making an table extension in visual studio code.
fields
{
field(50120; Test ; decimal)
{
Caption='Test';
}
}
And i have also added relevant code to display the field on the page by making a page extension
But I am unable to populate it with data.
I tried to add the following code in Table extension to populate it with data from sales line to sales shipment line
yes, it works in Purchase line side as well.
Thank you. It is very helpful.
We can see the same in Purchase lines too right?
Can you please tell me, how to know whether these set of tables are using Transferfields .
it uses transferfields and yes, it posts from sales line to shipment lines, invoice lines.
Okay, I did the same and it worked.
But how? Does BC internally flows values for all lines table?
is this flow only one directional?
Hi,
Create the same field in "Sales Line" ID - 37 table as well, and delete your logic you written above OnAfterValidate and then try.
fields
{
field(50120; Test ; decimal)
{
Caption='Test';
}
}
If you want to move the data from Sales Line to Sales Shipment Line then simply add the fields with same ID in both tables and system will automatically flow the data. No need to write any code.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,113 Super User 2024 Season 2
Martin Dráb 229,918 Most Valuable Professional
nmaenpaa 101,156