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)

customer name in lookup with multiselect

(0) ShareShare
ReportReport
Posted on by 3,945

hi all,
I want to give the customer name in lookup with multiselect , but the problem is that custname field is not present in the CustTable.

I know lookup with multiselect when field is present in the table , but here field is not present.

So please suggest how to do that
Thanks
Gautam

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    Simply join CustTable with DirpartyTable.

    Names are no more present in Cust or vendTable. These are saved with party

    tech.alirazazaidi.com/custom-lookup-field-with-no-exist-join-records-dynamics-ax-2012

  • Suggested answer
    Jonathan  Halland Profile Picture
    11,310 on at

    Hi Gautam.

    I'm not sure if I understand your quesion entirely, but on the CustTable table in the AOT you can drag the "name" method into the AutoLookup field group. This may resolve your issue depending on the context

  • Suggested answer
    syed baber Profile Picture
    11,633 on at

    Hi Gautam,

    The names are stored in DirPartyTable.name field. The relation between CustTable and DirPartyTable is as follows:

    CustTable.Party = DirPartyTable.RecId.

    Use the above relation to retrieve the customer name. You can also check the name() method on CustTable method to get more details around this.

    Please verify and let me know if you have further queries.

    Thanks,

    Baber.

  • Gautam Profile Picture
    3,945 on at

    hi baber i need this in lookup actually .

    How i will write this relation in lookup

  • Jonathan  Halland Profile Picture
    11,310 on at

    Hi Gautam. Can you not use the default functionality as described in my post above?

  • Gautam Profile Picture
    3,945 on at

    Sohaib you are right and the link which you have given is for lookup only , i need lookup with multiselect , that is the problem

  • Community Member Profile Picture
    on at

    Hi Gautam,

    To give customer a lookup name, first you have to create new register in GlobalAddressBookListPage form. Then click customer button on action pane. This field is not in customer table, but it is in (DirPartyTable).NameAlias.

    I hope help you.

    Best regards,

    Richardson

  • Suggested answer
    syed baber Profile Picture
    11,633 on at

    Hi Gautam,

    The SysLookupMultiSelect class uses a query object to show the values. You need to create a query using Query class to include CustTable and DirPartyTable. The post which Sohaib mentioned, has the code to create a query including these two tables. Have a look at that and let me know if you have further queries.

    Thanks,

    Baber.

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    how you are doing multiselect, in any class/dialog or on any form?

  • Gautam Profile Picture
    3,945 on at

    in form

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