Skip to main content

Notifications

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);
    //}
}

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

Announcing the Engage with the Community forum!

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 456 Most Valuable Professional

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 310

#3
Saalim Ansari Profile Picture

Saalim Ansari 261

Overall leaderboard

Product updates

Dynamics 365 release plans