private void populateAllergiesGrid(PatientAllergyForTriageVoCollection listAllergies) { form.grdAllergies().getRows().clear(); if(listAllergies == null) return; for(PatientAllergyForTriageVo allergy : listAllergies) { addAllergyRow(allergy); } form.grdAllergies().setValue(form.getLocalContext().getselectedAllergy());//WDEV-16176 }
private void addAllergyRow(PatientAllergyForTriageVo allergy) { if(allergy == null) return; grdAllergiesRow row = form.grdAllergies().getRows().newRow(); row.setColAllergy(allergy.getAllergenDescription()); row.setTextColor(ConfigFlag.UI.ALLERGIES_COMPONENT_TEXT_COLOUR.getValue()); //wdev-16133 row.setTooltipForColAllergy(allergy.getAllergenDescription());//WDEV-15092 row.setValue(allergy); }