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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Parameters are not being called by controller class

(0) ShareShare
ReportReport
Posted on by 642
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();
    }
}
 
I have the same question (0)

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

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 330 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 310

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 242 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans