private void listHCPs(String value) { form.ctnDetails().lyrDetails().tabDetailsTeam().qmbTeamLead().clear(); MemberOfStaffShortVo voFilter = new MemberOfStaffShortVo(); if (value != null) { PersonName voName = new PersonName(); voName.setSurname(value); voFilter.setName(voName); } HcpLiteVoCollection voCollHCPLites = new HcpLiteVoCollection(); if (form.ctnDetails().lyrDetails().tabDetailsTeam().cmbTeamType().getValue() != null && form.ctnDetails().lyrDetails().tabDetailsTeam().cmbTeamType().getValue().equals(ClinicalTeamType.CONSULTANTTEAM)) { Hcp voHcp = new Hcp(); voHcp.setHcpType(HcpDisType.MEDICAL); voFilter.setHcp(voHcp); } voCollHCPLites = domain.listHcpLites(voFilter); for (int i = 0; i < voCollHCPLites.size(); i++) form.ctnDetails().lyrDetails().tabDetailsTeam().qmbTeamLead().newRow(voCollHCPLites.get(i), voCollHCPLites.get(i).getMos().getName().toString()); if (voCollHCPLites.size() == 1) { form.ctnDetails().lyrDetails().tabDetailsTeam().qmbTeamLead().setValue(voCollHCPLites.get(0)); } else if (voCollHCPLites.size() > 1) form.ctnDetails().lyrDetails().tabDetailsTeam().qmbTeamLead().showOpened(); }