I am adding several reports to the SRSReportServerWarmup class to help speed up reports that are run [nearly] every day. One of the reports requested to be added to the warmup list is the Purchase receiving log report (VendPurchReceivingLog_NA). This report has no RDP, so I copied the "runSampleRdlReportWithParameters" method, as I want to add a value to the Delivery Date parameter and run it for the past 30 days. However, this report runs from a view, which pulls from a query that has the DeliveryDate and PurchId dragged into the Range field, which automatically pulls these to the front when running the report for a user to select. While the fields are displayed for entry, they are not hard-fast "parameters". They are included in the AX Dynamic parameter "VendPurchReceivingLog_DynamicParameter".
So, using the provided sample code:
// Set any required parameter values here by first getting the report contract.
contract = controller.parmReportContract();
// And then fill in that contract based on the contract type (Rdl or Rdp)
// Create the Rdl contract and set parameter values
rdlDataContract = contract.parmRdlContract();
rdlDataContract.setValue('<Parameter1Name>', '<Parameter1Value>');
rdlDataContract.setValue('<Parameter2Name>', '<Parameter2Value>');
...how can I add in my DeliveryDate parameter into the dynamic parameter?
*This post is locked for comments