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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)
Answered

How to set values to multiselect lookup control?

(0) ShareShare
ReportReport
Posted on by 95

I have a container of values when i close the form, the value is saved in a container from multiselect control. I need to reselect those values in multiselect lookup when i reopen the form . Is this possible? how can i achieve this?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    It is possible, you would have to implement it yourself though.

    Have a look at \Classes\SysLookupMultiSelect\selectAll(), this method is ticking all entries in the list.

    You could write your own custom logic where you pass in the selected container/list during your form init/run, and only select the specific IDs in the list.

  • Suggested answer
    István Orosz Profile Picture
    2,137 on at

    Hi,

    You can refer to this article about multiselect lookup control.

    Regards,

    István

  • Vilmos Kintera Profile Picture
    46,149 on at

    That article does not help with initialization.

  • Verified answer
    Muhammad Shaheryar Khan Profile Picture
    95 on at

    This issue has been resolved. I store the values in container on closing the form as:

    Con x,y,z;

    X=multiselectctrl.get();

    Y=multiselectctrl.getSelectedfieldvalue()

    Z=[x,z]

    Then store Z in table:

    Table.ConField =Z;

    While opening the form in init method I set these values:

    multiselectctrl.set(table.ConField);

    In this way values was selected in multiselect lookup control while form opening.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans