Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

If condition for combobox

Posted on by 125
Can you pls help me out?
 
xtsvendorselect is the parameter,
xtsvendorselect enum has two values as transaction and item with if condition we want that if transaaction i selected vendor will come from custinvoicetrans and if item is selected it wil pick up vendor from vendtable and if transaction is selected then vendor is pickup from custinvoicetrans in x++
 
i have added this parameter in contract class
 
XTSvendor selection is base enum having two values trans and item.
and xtsvendorselect is edt enum having extend property as xtsvendorslection
 
  • M_R Profile Picture
    M_R 125 on at
    If condition for combobox
    Actually, item and transaction is filter for the report
    we just want vendor from item master for item, and for transaction it should be from custinvoicetrans
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,590 Super User 2024 Season 1 on at
    If condition for combobox
    At line 200, findCustInvoiceTrans has total 5 arguments. But you are passing "itemId" which seems you have not given complete information to us about the value you are passing. And the method is actually expecting different arguments.
     
    For line 198, you did not provide us the full information about the contract parm method you have defined. I understood that it is a parameter but I assume the contract parm method is having an issue.
     
    So, can you please correct the things as suggested and give us full detail?
  • Suggested answer
    GirishS Profile Picture
    GirishS 27,832 Super User 2024 Season 1 on at
    If condition for combobox
    Hi M_R,
     
    I think you need to write a separate query to fetch data from different tables based on the selected Enum value.
    But I can't understand why you are picking the vendor from CustInvoiceTrans table, in fact CustInvoiceTrans table doesn't have Vendor field it seems.
    You told the Enum as parameter, but you didn't mention where you have added this as parameter which is about like form or class or something else?
    Can you elaborate?
     
    Thanks,
    Girish S.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans