Hi everyone,
I have created an action on my card page that lauch the report
No problem...
But i try to autofill the field "code article" with the value from the main card page...
And i dont see how to do it...
My code in my main page
// Add the action called "TDS PRINT" to the action menu area(Processing) { action("TDS PRINT") { Promoted = true; PromotedCategory = Process; ApplicationArea = All; Image = Print; RunObject = report TDS; } }
And the code on report page
report 95120 TDS { DefaultRenderingLayout = "TDS-SO-FR"; dataset { dataitem(TDS; TDS) { RequestFilterFields = "Code article"; column(Acidite; Acidite) { } column(Bio; Bio) ...
Also, is it possible to add a second action ( next to "TDS print" action ) to save locally the report in pdf but with a custom filename ?
Thanks in advance for your help.
Thanks Zhu, and on your website i also find how to do with my multiple layout choice before print
Hi, Please try the following.
Report.Run() Method: https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/report/report-run-method
Hope this helps.
Thanks.
ZHU
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,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156