How to populate Form Dropdown with BonitaSoft UserIDs?

1
0
-1

Dear Sir/Mdm,

How to populate Form Dropdown list with BonitaSoft UserIDs? Been trying for days.

Terry

1 answer

1
0
-1

hello ,

Into select box's available field paste following code

import org.bonitasoft.engine.identity.*;

List<User> users = apiAccessor.getIdentityAPI().getUsers(0, 200, UserCriterion.FIRST_NAME_ASC);
Map<String,Long> combo = new HashMap<String,Long>();


for(User u:users)
{
        combo.put(u.getId(),u.getId());
}

return combo

Thanks Kandarp

Notifications