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 :
Microsoft Dynamics AX (Archived)

Get the reference of the current contract object in Controller class

(0) ShareShare
ReportReport
Posted on by 922

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

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    240,340 Most Valuable Professional on at

    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

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 > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans