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)

Need help regarding SysLookupMultiSelectCtrl in X++

(0) ShareShare
ReportReport
Posted on by 1,023

Hi,

I am facing a problem, i am using SysLookupMultiSelectCtrl class to create a multiselt lookup grid.The lookup contains two columns Code, Description.But the problem is that i want to show the values of the 2nd column (Description) on selecting a record from the grid.but this does,'t happen, it will always show the first column value (Code) when ever i select a record from the grid. My requiremnt is that i want to show the description on selection in the control.

Hope you aomeone might have a solution regarding that.

Thanks,

*This post is locked for comments

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

    Which version of AX are you using? In AX2012 you can have foreign keys with reference fields .

    In AX2009 or earlier, there is a sample showing a contact person name (customer form) in stead of the ID. But this requires an edit method as well.

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

    It is supported, just not very intuitive and well-documented. The key is the last parameter of SysLookupMultiSelectCtrl's construct() - you have to provide a container with table ID and field ID (in this order). For example:

    SysLookupMultiSelectCtrl::construct(
        element,
        ctrl,
        queryName,
        false,
        [tableNum(Table1), fieldNum(Table1, Field1)]);
  • Muhammad Yasir Profile Picture
    1,023 on at

    Thank you very much Martin . It works :)

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