Selecting multiple values from lookup

Hello Everyone,

I have added employee lookup in ProdTable which should allow user to select multiple values.

I have fallowed below steps :

Created query with required columns for lookup. Used HcmWorker and Dirparty Table as datasource for query.

In class declaration

SysLookupMultiSelectCtrl msCtrl;

In run method of Form:

msCtrl = SysLookupMultiSelectCtrl::construct(element, empltctrl, querystr(PersonnelNoLookup),false);

But I am not able save the selected lookup values in table as it returns container values.

Please help me to get an idea how to retrieve selected lookup values and save it in table field.

Thanks in advance !!



What is the type of field in the Table.

Have a look \Forms\LogisticsPostalAddress form how the rolesCtrl control’s set and get methods are used.

Thank you for your response !!

I used below method to get the values.



To populate the values, used below code .


Thanks & Regards,