Hello ..
I have contract class with 3 parameters , i am using controller class to pass params to ssrs report
but i have a problem with multi parameters (The wrong number of parameters are passed during object creation) in debugging
class SrsRDPCalcAttTimeController extends SrsReportRunController { SrsRDPContractCalcAttTime contract; t_TmpTotalAttendance tmp; //MonthOfYearId mn; //e_VacBlnYear yy; //HcmPersonnelNumberId_RU PersonnelNumber; t_Payroll t_payroll; } // public void new(t_Payroll _t_payroll) { t_payroll = _t_payroll; } //Modifies the contract before the dialog is shown to the user. // place the code for modifying queries before they are displayed in the dialog. protected void prePromptModifyContract() { contract = this.parmReportContract().parmRdpContract() as SrsRDPContractCalcAttTime; contract.parmMonth(t_payroll.MN); contract.parmYear(t_payroll.YY); contract.parmPersonnelNumber(t_payroll.PNo); } public static client void main(Args args) { SrsRDPCalcAttTimeController controler; controler = new SrsRDPContractCalcAttTime(args.record()); controler.parmArgs(args); controler.parmReportName(ssrsReportStr(Report31,CopyOfCopyOfPrecisionDesign1)); controler.parmShowDialog(false); //controler.parmShowReportViewerParameters(false); controler.startOperation(); }
the error displayed at (args.record());
thnaks
*This post is locked for comments
sorry i put contract instead controller in
controler = new SrsRDPContractCalcAttTime(args.record());
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,219 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156