Hi,
I was assigned to create a customized report in Dynamics AX runs on Shipment Details Form. I have created a SSRS report and Deployed it to Dynamics successfully.
And I have added a new MenuItemButton under the existing Print Button Group in the Shipment Details Form and override the Clicked event to call the SSRS report directly.

(I did not create a Menu or MenuItem)
Here is my code below...
SrsReportRun srsReportRun;
str 30 ShipmentID_ ;;
ShipmentID_ = WHSShipmentTable_ShipmentId.valueStr();
srsReportRun = new SrsReportRun("CMR_ReportFromShipment.CMR_FormReport");
srsReportRun.init();
//Passing the Parameters through X++
srsReportRun.reportParameter("CMR_ReportFromShipment_ShipmentId").value(ShipmentID_);
srsReportRun.showDialog(false);
if( srsReportRun )
{
srsReportRun.executeReport();
}
As I have the System Administrator access to the system, so that I can run the report without any issue.
But when a user click on the same MenuItemButton , it does not run the report and there is no error message either.
I have googled and referred lot of articles related to Dynamics Security Controls , but still I could not solve the issue.
Can someone please help me with this?
Thank you in Advance.
Regards,
Tharindu.