Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Get the reference of the current contract object in Controller class

(0) ShareShare
ReportReport
Posted on by 910

Hello ,

I created new chek box parameter in the contract class . Here i want use this parameter in controller class  to specify which report w'll be launched.

I want writ this code in main method of controller class :

noYesId = contract.parmMethodName();
if(noYesId)
{
   controller.parmReportName(#reportName1);
}
else
{
    controller.parmReportName(#reportName2);
}

how can i get the value of  parmMethodName() ? In RDP class we use this : 

XXXContract contract = this.parmDataContract() as xxxlContract; //then 
noYesId = contract.parmMethodName();

*This post is locked for comments

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,379 Most Valuable Professional on at
    RE: Get the reference of the current contract object in Controller class

    Use controller.parmReportContract().parmRdpContract().

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! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,379 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans