I have rdp class that has two temp table, in process in rdp class i want to run specific function based on design in menu item and another function based on another design.
how to do this??
Regards,
*This post is locked for comments
I have rdp class that has two temp table, in process in rdp class i want to run specific function based on design in menu item and another function based on another design.
how to do this??
Regards,
*This post is locked for comments
Hi Mostafa,
There are several ways to accomplish this. I would recommend to introduce a parameter on the datacontract class(as Martin suggested) and mark the parameter to yes/no based on the report name in the controller class
(by overriding the getFromDialog() method and include following code). In the DP class access these value from the contract class and invoke your function accordingly.
public void getFromDialog()
{
Contractclass statementContract; //Intialize contract class
super();
statementContract = this.getReportContract().parmRdpContract() as Contractclass;
if (this.parmReportName() == #ReportName)
{
statementContract.parmvalue(); // parameter on the contract class
}
}
Hope this helps you.
Thanks,
Chaitanya Golla
Hi,
1.First Define the contract parameters
2.retrieve in RDP class
3.write condition in DP class like
if(Function1)
{
this.insertintotmptable1();
SrsReportRunController controller;
controller = new SrsReportRunController();
controller.parmReportName(ssrsReportStr(Report, Design1));
controller.startOperation();
}
else if(Function2)
{
this.insertintotmptable2();
SrsReportRunController controller;
controller = new SrsReportRunController();
controller.parmReportName(ssrsReportStr(Report, Design2));
controller.startOperation();
}
If this is not your solution
Please check this example
Create controller class
Ex :- RetailLabelController.ParmreportName()
Regards.
Put the parameter to the data contract class when calling the report. The RDP class with later get it it the parameter of processReport().
André Arnaud de Cal...
294,281
Super User 2025 Season 1
Martin Dráb
233,019
Most Valuable Professional
nmaenpaa
101,158
Moderator