Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

Get the reference of the current contract object in Controller class

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();
  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 228,251 Most Valuable Professional on at
    RE: Get the reference of the current contract object in Controller class

    Use controller.parmReportContract().parmRdpContract().

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,353 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,251 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans