web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Multi Lookup

(0) ShareShare
ReportReport
Posted on by

Hi,

I have the multi lookup.In that the already selected companies does not preselected in the lookup.

For example: I selected three values in lookup  again i click the look  up the selected values are not marked as selected.Why?

pastedimage1599838393719v1.png

Thanks

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    306,308 Super User 2026 Season 1 on at

    Hi John,

    Do you have this behavior on a standard form or is this a customization? If it is a customization, then compare with out of the box multi lookups how it has been implemented and if something was forgotten.

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,429 on at

    Hi John,

    I just answered the exact question in this thread. I will put the code here as well

    public void lookup()
    {
    	QueryBuildDataSource        qbds;			
    	container 					selectFields = conNull();
    	Query                       query   = new Query();
    	
    	qbds = query.addDataSource(tableNum(CompanyInfo));
    
        qbds.addSelectionField(fieldNum(CompanyInfo,DataArea));
        qbds.addSelectionField(fieldNum(CompanyInfo,Name));
    	
    	SysLookupMultiSelectCtrl::constructWithQuery(element, MultiLookup, query, false, selectedFields);
    }

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 407 Super User 2026 Season 1

#2
Subra Profile Picture

Subra 394

#3
Martin Dráb Profile Picture

Martin Dráb 275 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans