web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Pass multi parameters to controller class (The wrong number of parameters are passed during object creation)

(0) ShareShare
ReportReport
Posted on by 576

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

  • Ismail Mohamed Profile Picture
    576 on at

    sorry i put contract instead controller in  

    controler   = new SrsRDPContractCalcAttTime(args.record());

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Prashant Singh Profile Picture

Prashant Singh 2

#1
nmaenpaa Profile Picture

nmaenpaa 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans