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 :
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

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans