To add a members in a group table via record producer

Aanchal Mehndi1
Giga Contributor

Requirement is to add a members in a group table via record producer

I have made three variables one as a reference variable to sys_user_group table

second, drop down with value add and remove

third, list collector on table sys_user

On the basis of group selection, and add value in drop down variable,

in the slush bucket, Users who are member of selected group should be pre-selected in right side of slush bucket and on left side all remaining active users..


On the basis of group selection, and remove value in drop down variable, only members of selected variables should be visible on left side of bucket.


6 REPLIES 6

Hi Subhankar,



I am not sure, whether this will work in case of Slush Bucket?


Have you tried for slushbucket?


Hello Aanchal,



Script include will work if you can configure it properly as slush bucket uses a table for reference.



You may call the script include from your catalog script too.



You may try to store all the users in an array (suppose its usr_lst) and then return the list as :


var usr_lst=[];


...


...


var arrayUtil = new ArrayUtil();


usr_lst = arrayUtil.unique(usr_lst);


return 'sys_idIN' + usr_lst;



Warm Regards,


Subhankar