private void populateAssessmentQueryCombo(String value) { form.qmbAssessment().clear(); UserAssessmentForWhiteboardConfigVoCollection coll = domain.listAssessments(value); for (int i = 0; i < coll.size(); i++) { UserAssessmentForWhiteboardConfigVo userAssess = coll.get(i); form.qmbAssessment().newRow(userAssess, userAssess.getName().toString()); } if (coll.size() == 1) { form.qmbAssessment().setValue(coll.get(0)); } else if (coll.size() > 1) { form.qmbAssessment().showOpened(); } }
private void populateAssessmentQueryCombo(String value) { form.qmbAssessment().clear(); UserAssessmentForWhiteboardConfigVoCollection coll = domain.listAssessments(value); for (int i = 0; i < coll.size(); i++) { UserAssessmentForWhiteboardConfigVo userAssess = coll.get(i); form.qmbAssessment().newRow(userAssess, userAssess.getName().toString()); } if (coll.size() == 1) { form.qmbAssessment().setValue(coll.get(0)); } else if (coll.size() > 1) { form.qmbAssessment().showOpened(); } form.txtName().setValue(form.qmbAssessment().getValue()!=null ? form.qmbAssessment().getValue().getName() : null); }