private void populateRecordBrowser() { if( form.getLocalContext().getEDAssessmentWoundImagesIsNotNull() && form.getLocalContext().getEDAssessmentWoundImages().getWoundImagesIsNotNull() && form.getLocalContext().getEDAssessmentWoundImages().getWoundImages().size() > 0) { WoundImagesVo tempVo = null; WoundImagesVoCollection tempColl = form.getLocalContext().getEDAssessmentWoundImages().getWoundImages(); tempColl.sort(new WoundImageComparator(SortOrder.DESCENDING)); for(int i = 0; i < tempColl.size();i++) { tempVo = tempColl.get(i); if( tempVo != null) { form.recbrwoundImages().newRow(tempVo, tempVo.getAuthoringInformation().getAuthoringHcp().getIHcpName() + " - " +tempVo.getAuthoringInformation().getAuthoringDateTime().toString() ); } } if( !form.getLocalContext().getCurrentWoundImageIsNotNull()) form.getLocalContext().setCurrentWoundImage(tempColl.get(0)); form.recbrwoundImages().setValue(form.getLocalContext().getCurrentWoundImage()); } }