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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Wrong number of arguments for method

(0) ShareShare
ReportReport
Posted on by 1,883

Dears,

I have problem with the method called editContactPersonName()[Related to SalesQuotationTable]. I want to use this method in PSAQUOTAIONDP  RDP class so I can display the info in Reports related to editContactPersonName().  I was insert above method like m_tPSAQuotationsTmp.ContactName = m_tSalesQuotationTable.editContactPersonName(); but there is an error "The wrong number of arguments has been specified for the method.".

Pleased Help me and Really appreciate for earliest reply..

Thanks in Advance!!!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    You forgot to call the method with parameters (boolean _set, ContactPersonName _name).

    By the way, "SSRS" doesn't look like the most descriptive title for your question. Please pay more attention to it next time.

  • Suggested answer
    5400 Profile Picture
    7,162 on at

    arg.jpg

    You have to pass the parameters, it is not optional in function.  

  • Faqruddin Profile Picture
    1,883 on at

    Thanks for your Reply Sir. I'm new in X++ , Now this time I called above method like  m_tPSAQuotationsTmp.ContactName = m_tSalesQuotationTable.editContactPersonName(boolean _set, ContactPersonName _name); still there is an error "Variable boolean has not been declared.". I declared the variable in class declaration like boolean _set;

    Thank you!

  • Verified answer
    5400 Profile Picture
    7,162 on at

    you should not pass with declaration, you should pass value

    m_tSalesQuotationTable.editContactPersonName(true/false, name of contact person);

  • Faqruddin Profile Picture
    1,883 on at

    Please can you give me an example!!

  • Verified answer
    5400 Profile Picture
    7,162 on at

    I don't know your scenario.

    option 1:

    m_tSalesQuotationTable.editContactPersonName(false, ' ');

    Option 2:

    m_tSalesQuotationTable.editContactPersonName(true, 'nameofcontact');

  • Faqruddin Profile Picture
    1,883 on at

    Thank you sir. In my case the Option 1 work for me, thanks a lot. You really save my time. I hope you will reply my queries in future..

    Thanks a lot..:-)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans