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 Reference doesn't work

(0) ShareShare
ReportReport
Posted on by 770

Dear friends,

In my parent table there are 5 types of records.

I have created one child  table and add one int64 field to relation with that parent table recid and related field fixed relation with first 3 types.

When I use this reference field in form with new child table ds, it will be loaded that first 3 type records in lookup reference.....

For another scenario, I want to load in same reference field with only one type with same child table as ds .....

How can I write the look up reference method for this ..?

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    If "type" means an enum field, then yes, you can filter by the field in an overridden lookupReference() method. Do you have any particular problem with it, or are you lookup for documentation about how to use lookupReference() method in general?

  • MUHAMMAD HAARIS Profile Picture
    770 on at

    Thanks Martin,

    I have overridden lookup reference method in field in DS.... But it won't affect....

    It is loaded the records based on the relation only.... Not by my condition in lookup reference method.......

  • Verified answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    If you lookupReference() method doesn't work correctly, than it probably isn't implemented correctly. But I can't tell you anything specific until you tell me what you actually did.

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