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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

If condition for combobox

(0) ShareShare
ReportReport
Posted on by 123
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
 
I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at
    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.
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    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?
  • M_R Profile Picture
    123 on at
    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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans