protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException { form.grdCareContextHistory().getRows().clear(); CareContextSmallVo tempVo = form.getGlobalContext().Clinical.getCareContextWithHistory(); if(tempVo != null && tempVo.getCareContextHistoryIsNotNull() && tempVo.getCareContextHistory().size() > 0) { CareContextHistVoCollection tempColl = tempVo.getCareContextHistory(); tempColl.sort(new CreationDateComparator(SortOrder.ASCENDING)); for(int i = 0;i < tempColl.size();i++) { CareContextHistVo voHist = tempColl.get(i); if(voHist != null) populateChildGrid(voHist); } } }