Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Add two display fields in ItemId looup.

(1) ShareShare
ReportReport
Posted on by 6
Hi All,
 
To add two new fields through display method in Item Id lookup, added two display method on InventTable and the display method added to Field Group AutoLookup but the lookup is not showing the two fields.
 
Please help me if any thing else i am missing to get the desired lookup.
 
  • Layan Jwei Profile Picture
    Layan Jwei 7,613 Super User 2025 Season 1 on at
    Add two display fields in ItemId looup.
    Hi,

    Is your question answered, if yes then please verify the answers that helped
  • Suggested answer
    Layan Jwei Profile Picture
    Layan Jwei 7,613 Super User 2025 Season 1 on at
    Add two display fields in ItemId looup.
    Hi Urvashi,
     
    As Martin said, most probably the lookup for the field is from "InventItemIdLookupSimple" Form. This form is based on a view that is called "InventItemIdLookupSimpleView"

    I can see that both display methods you are trying to add, reads from EcoResProduct table. And this view "InventItemIdLookupSimpleView" has "EcoResProduct" as a datasource.

    So what you need to do is, add these two new fields (drag and drop) from EcoResProduct to the view fields (InventItemIdLookupSimpleView). Then go to the form  "InventItemIdLookupSimple" and add these two fields to the grid as well.   -- no need for display methods and the lookup should work as you expect now. 

    **but please note this will affect all places that use this EDT. -- is this your intention? if not, then what is the form you are trying to amend that contains this EDT? maybe you will need to put logic on the form control itself

    Thanks,
    Layan Jweihan
    Please mark the answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 7,048 Super User 2025 Season 1 on at
    Add two display fields in ItemId looup.
    Hi

    You can try to override lookup method through extension, and you should cancel call to super in the method.

    Regards
    Waed
  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,817 Most Valuable Professional on at
    Add two display fields in ItemId looup.
    It seems that the form control, lookup of which you're trying to change, doesn't use AutoLookup group. Most likely, it uses the default lookup form for ItemID EDT, which is InventItemIdLookupSimple. It may also have lookup() method overridden and using some other logic.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans