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)

Lookup filter

(0) ShareShare
ReportReport
Posted on by 60

Hello,

I need help on automated filter on lookup.

So here is the case. When I click on any "Customer Account" lookup say in "Sales order form" I can filter it by just typing some text in the field. If I type the customer name it filters the customers and show only those records in lookup which matches the text entered in the lookup field. How this can be done for any custom field?

I have a EDT "XY" and have used it as a primary key in a table "ABC" which has 2 fields "XY" and "Description". I have set the "Table reference" property on EDT to "ABC".

When I use this field in any form it is showing me the lookup of the data in table "ABC". But I want if I enter some value which matches the "Description" field of my table it should filter the record in lookup.

It is filtering the records fine if I  enter text matching to "XY" field but not for "Description".

 

*This post is locked for comments

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

    following support article should be valid in MSDyn365fo as well.

    blogs.msdn.microsoft.com/.../using-the-new-keyword-search-option-to-create-sales-orders-in-dynamics-ax-2012-r3

    and a video

    www.youtube.com/watch;feature=youtu.be

  • AX Ankit Profile Picture
    60 on at

    Sohaib Ahmad - Thanks for your response but I believe I am looking for something different. I am attaching an image for your reference.

    In the below image, I entered value "High" and the dropdown was filtered with only those items for which "Item Name" matches to the text.

    2766.Item.png

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    The fields which you refer to are using x++ lookup methods instead of normal automatic lookups that are based on table relation.

    On the calling form, you will find method called lookup either on the field control, or on the data source field. That method usually calls the actual lookup method which you will find on the corresponding table.

    When you examine those methods, you should be able to create similar lookups in your own fields. You can also google for x++ custom lookups.

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