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 :
Finance | Project Operations, Human Resources, ...
Unanswered

how to select second value of multi select lookup in x++

(0) ShareShare
ReportReport
Posted on by 131

I have created multi select lookup but when I am using MultiSelectControl.valueStr() in my code it is returning first column value whereas i Want last two column value of multi select lookup

HERE IS THE LOOKUP SNAPSHOT

multiselect4.png

I Want to add last value of multi select lookup here below:

public void lookup()
{
    Query query = new Query();
    QueryBuildDataSource queryBuildDataSource;
    QueryBuildRange queryBuildRange;
    SysTableLookup sysTableLookup;

    str   Itemsubtypeforlockup = RNI_Type.valueStr();
    //if(Itemsubtypeforlockup)
    //{
        queryBuildDataSource = query.addDataSource(tableNum(SL_ITEMCATMODELNUMBER));
        queryBuildDataSource.addRange(fieldNum(SL_ITEMCATMODELNUMBER,DESCRIPTION)).value(HERE I WANT TO INSERT 2ND LAST COLOUMN VALUE OF MULTI SELECT LOOKUP DEFINE ABOVE);
        msCtrl = SysLookupMultiSelectCtrl::constructWithQuery(this.formRun(),this,query);
    //}
}

I have the same question (0)

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 592 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 478 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 305 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans