Hi ,
I have a requirement, like when I execute my report it should get different caption at different places.
When we run through Controller Class :
Modify the controller class, with two methods :
So in above condition, based on arguments record it displays different names when i execute the report.
So below is the link for reference :
https://nasheet.wordpress.com/tag/ssrs-reporting-in-ax/
When we call the report through X++ code directly the menu item below is the code :
I have a requirement, like when I execute my report it should get different caption at different places.
When we run through Controller Class :
Modify the controller class, with two methods :
public container
pack()
{
container
con;
con
= super();
return
con;
}
|
public boolean
unpack(container packedState)
{
boolean
ret;
ret = super(packedState);
this.parmDialogCaption(this.parmArgs().record().TableId == tableNum(SalesTable) ? "@CIT467" : "@CIT130");
return
ret;
}
|
So in above condition, based on arguments record it displays different names when i execute the report.
So below is the link for reference :
https://nasheet.wordpress.com/tag/ssrs-reporting-in-ax/
When we call the report through X++ code directly the menu item below is the code :
static void
ReportRun(Args _args)
{
SrsReportRun srsReportRun;
srsReportRun = new SrsReportRun("ItemLabelReport.Report");
srsReportRun.init();
srsReportRun.reportCaption("InventOnHand");
srsReportRun.showDialog(false);
if(
srsReportRun )
{
srsReportRun.executeReport();
}
info("Report
Saved");
}
|
No comments:
Post a Comment