So i have a value on a page from a field that i would like to use while running a report.
What i tried in code is this:
ReportRun: Report GetPurchPricesDisc;
ReportRun.SetParameter(BatchName);
Report.Run(Report::"GetPurchPricesDisc");
Now as i guessed this returns an empty value in the report since they aren't bound to each other in any way.
In what way can i solve this?