protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException { form.grdEpisodeOfCareHistory().getRows().clear(); EpisodeOfCareSmallVo tempVo = form.getGlobalContext().Clinical.getEpisodeOfCareWithHistory(); if(tempVo != null && tempVo.getEpisodeOfCareHistoryIsNotNull() && tempVo.getEpisodeOfCareHistory().size() > 0) { EpisodeOfCareHistVoCollection tempColl = tempVo.getEpisodeOfCareHistory(); tempColl.sort(new CreationDateComparator(SortOrder.ASCENDING)); for(int i = 0;i < tempColl.size();i++) { EpisodeOfCareHistVo voHist = tempColl.get(i); if(voHist != null) populateChildGrid(voHist); } } }