web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    48,760 User Group Leader on at
    RE: customer name in lookup with multiselect

    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
    RE: customer name in lookup with multiselect

    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
    RE: customer name in lookup with multiselect

    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
    RE: customer name in lookup with multiselect

    hi baber i need this in lookup actually .

    How i will write this relation in lookup

  • Jonathan  Halland Profile Picture
    11,310 on at
    RE: customer name in lookup with multiselect

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

  • Gautam Profile Picture
    3,945 on at
    RE: customer name in lookup with multiselect

    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
    RE: customer name in lookup with multiselect

    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
    RE: customer name in lookup with multiselect

    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
    48,760 User Group Leader on at
    RE: customer name in lookup with multiselect

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

  • Gautam Profile Picture
    3,945 on at
    RE: customer name in lookup with multiselect

    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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans