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
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.
That article does not help with initialization.
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.
André Arnaud de Cal...
292,031
Super User 2025 Season 1
Martin Dráb
230,868
Most Valuable Professional
nmaenpaa
101,156