Hello,
I'm just trying to find some example code in C/AL to print the dimension values for each line for Page 51 Purchase Invoice. I assume I have to use the Dimension Management codeunit to do this, but not sure how to print these values in a MESSAGE(). I can access the Shortcut dims 1 and 2 from the Record object, but I need to be able to get the other dimensions as well.
thanks
Hello Manish,
I added an action button to the Purchase Invoices Page and in that method I just want
a MESSAGE method, so this isn't C/AL code but something like
do
{
MESSAGE('print here')
} while ()
I am sorry, I don't have much experience in C/AL coding, but I know C#. I'm trying to get the line item dimensions for Purchase Line and iterate through all dimensions for all lines.
thank you so much
Where do you want to print the dimension ? A factbox or a report.
Hi Teddy,
thank you for the reply, is there any way you could provide example c/al code? I'm trying to iterate through each Purchase Line for Purchase Invoices and print each value for all dimensions per line.
thank you so much
Get the dimension set ID from the record, and the go to Dimension Set Entry table and retrieve the dimensions.
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,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156