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)

Show the item name when selected the item id from lookup

(0) ShareShare
ReportReport
Posted on by

I have a grid with itemid lookup (with InventTable relation).i want to display Itemname automatically when i select ItemID .

How can show the item name when selected the item id from lookup ? Please help me..

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Iulian Cordobin Profile Picture
    8,201 on at

    You want to display the name in the grid, after you actually select the Item? The fastest way would be to add a display method to the table that is used to display data in your grid (and that has that column for ItemId), display method that returns the name of the item and then add this display method to your grid.

  • Community Member Profile Picture
    on at

    Thank u veru much for ur reply..I got it

  • Verified answer
    Community Member Profile Picture
    on at

    First create a method like this..

    display InventItemName itemname()

    {

         return InventTable::find(this.ItemID,false).Name;

    }

    then assign this on Data Method of column or field (stringEdit)

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