How to populate Form Dropdown with BonitaSoft UserIDs?
1 answer
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
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