Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Unanswered

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

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

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans