private void populateScreenFromData(NurAssessmentAccommodationPropertyVo voAccomProp) { if (voAccomProp.getIsComplete().booleanValue() == true) // Complete { form.setMode(FormMode.VIEW); form.chkSectionComplete().setValue(true); form.chkSectionComplete().setEnabled(false); } form.chkCopy().setEnabled(false); if (voAccomProp.getCopy().booleanValue() == true) { form.chkCopy().setValue(true); } PatientProperty voProperty = voAccomProp.getPatientProperty(); if(voProperty != null) { form.ansPropertyBookCompleted().setValue(voProperty.getPropertyBookComplete()); form.txtSerialNumber().setValue(voProperty.getSerialNumber()); //wdev-13083 if(form.getMode().equals(FormMode.EDIT)) { if(YesNoUnknown.NO.equals(form.ansPropertyBookCompleted().getValue())) { form.txtSerialNumber().setEnabled(false); } else { form.txtSerialNumber().setEnabled(true); } } //------------------ } AccommodationHousing voHousing = voAccomProp.getAccommodationHousing(); if(voHousing != null) { form.cmbAccommodation().setValue(voHousing.getAccommodationType()); form.cmbLivingArrangements().setValue(voHousing.getLivingArrangements()); form.txtNotes().setValue(voHousing.getNotes()); } }