I’m using AX 2012 R3.
My requirement is to set the value of custom parameters when opening the sales packing slip report.
For this, i have written the code in PreRunModifyContract of SalesPackingSlipController.
But i’m unable to get reference of CustInvoiceJour when the report is opened directly after posting the journal.
I get the reference when the report is opened from Sales Packing Slip journal.
Is there a way to get the reference of the journal when the report is opened directly after posting the journal?