Skip to main content

Dyamics Ax 2009 SSRS report call under button

void clicked()
{
URL _ReportServerUrl;
_ReportServerUrl = SRSConfiguration::getReportServerUrl();


if(PurchTable::find(vendpackingslipjour.PurchId).PurchReqExpType==PurchReqExpType::Service)
{
_ReportServerUrl = _ReportServerUrl + "?/Reports/ServiceCompletion&rs:Command=Render&DAI=" + curext() + "&PurchID=" +VendPackingSlipJour.PurchId +"&PSINTERNALID=" + VendPackingSlipJour.InternalPackingSlipId ;
infolog.urlLookup(_ReportServerUrl);
}
else{
_ReportServerUrl = _ReportServerUrl + "?/Reports/GRN&rs:Command=Render&DAI=" + curext() + "&PurchID=" +VendPackingSlipJour.PurchId + "&PSINTERNALID=" + VendPackingSlipJour.InternalPackingSlipId ;
infolog.urlLookup(_ReportServerUrl);
}
}

Comments