Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

Parameters are not being called by controller class

(0) ShareShare
ReportReport
Posted on by 576
Hi Experts,

I need to add some custom fields in External customer account statement report. I have added them and it is printed in my report but I am facing an issue, when ever I click on the report it prints the report for all customers. It does not ask for any parameters. I have created a controller class which extends the standard controller class and I have create an extension for the standard report menuitem and pointed to my custom report. can anyone help me to find out where I am doing it wrong. 
 
Below is the code in my controller class. 
 
class NESCustAccountStatementExtController extends CustAccountStatementExtController
{
    public static NESCustAccountStatementExtController construct()
    {
        return new NESCustAccountStatementExtController ();
    }
    public static void main(Args _args)
    {
        SrsPrintMgmtFormLetterController controller = new NESCustAccountStatementExtController ();
        controller.parmReportName(PrintMgmtDocType::construct(PrintMgmtDocumentType::CustAccountStatement).getDefaultReportFormat());
        controller.parmArgs(_args);
        NESCustAccountStatementExtController ::startControllerOperation(controller, _args);
    }
    protected static void startControllerOperation(SrsPrintMgmtFormLetterController _controller, Args _args)
    {
        _controller.startOperation();
    }
}
 

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans