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)

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

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,069 Super User 2025 Season 2 on at

    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.

  • Suggested answer
    Martin Dráb Profile Picture
    237,948 Most Valuable Professional on at

    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.

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

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

    4762.ModelGroup.jpg
    Thanks,
    Chaitanya Golla

  • Ismail Mohamed Profile Picture
    576 on at

    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 ?

  • Martin Dráb Profile Picture
    237,948 Most Valuable Professional on at

    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

    Martin Dráb

    thanks , i didn't see your replay

    Done

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