How to populate Form Dropdown with BonitaSoft UserIDs?

Dear Sir/Mdm,

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

Terry

hello ,

Into select box’s available field paste following code

import org.bonitasoft.engine.identity.*;

List 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