Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Add columns to item ID lookup

(0) ShareShare
ReportReport
Posted on by 5

Hi,

When creating a new Purchase order, we must select the item number from a lookup. I want to modify the columns of this lookup.

 I want to modify the columns shown in the lookup of Item number field.

I have added a new field "Item model group" to Purchline Table. I want to add this Field to Auto Lookup

Could anyone advise how to modify the columns in item number lookup of  fields

Thanks in advance

4812.po.png

*This post is locked for comments

  • Ismail Mohamed Profile Picture
    576 on at
    RE: Add columns to item ID lookup

    Martin Dráb

    thanks , i didn't see your replay

    Done

  • Martin Dráb Profile Picture
    234,163 Most Valuable Professional on at
    RE: Add columns to item ID lookup

    Ismail, please read my reply. It explains that I looked at the lookup() method and found the answer there.

    In general, either the lookup is generated by AX, it's generated by custom code in lookup() (or lookupReference()) method or there is a modeled form associated with the EDT (FormHelp property) or used from code (that's the case discussed in this thread).

  • Ismail Mohamed Profile Picture
    576 on at
    RE: Add columns to item ID lookup

    Martin Dráb - Chaitanya Golla 

    please how you know that ?

    is there anyway to know the used form for lookup !

    is there any property tell me the used form in the lookup ?

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at
    RE: Add columns to item ID lookup

    Hi,

    Please modify the form InventItemIdLookupPurchase(as suggested by Martin) shown below to get item model group:

    4762.ModelGroup.jpg
    Thanks,
    Chaitanya Golla

  • Suggested answer
    Martin Dráb Profile Picture
    234,163 Most Valuable Professional on at
    RE: Auto Lookup

    If you look at ItemId field of PurchLine datasource, you'll see that it has lookup() method overridden. Inside the method, you can find that it uses InventItemIdLookupPurchase form. That's where you can add extra columns.

  • André Arnaud de Calavon Profile Picture
    295,408 Super User 2025 Season 1 on at
    RE: Auto Lookup

    Hi Sravan,

    For what reason did you include the Item model group on the purchase lines? If it a new field on the PurchLine table? In fact it has nothing to do with the lookup.

    You have to verify if a lookup form has been created and used for the InventTable. If not, it will use the fields listed in the AutoLookup field group of the InventTable.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 50

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Featured topics

Product updates

Dynamics 365 release plans