private void fillRecordBrowser() { SportsActivitySessionShortVoCollection voSportsActivityShortColl = domain.listSportsActivityByCareContext(form.getGlobalContext().Core.getCurrentCareContext()); ClinicalContactShortVo voCurrentClinicalContact = form.getGlobalContext().Core.getCurrentClinicalContact(); boolean currentClinicalContactFound = false; loadCurrentCareContext(); if(voSportsActivityShortColl != null) { for(int i=0; i<voSportsActivityShortColl.size(); i++) { SportsActivitySessionShortVo voSportsActivitySessionShort = voSportsActivityShortColl.get(i); ClinicalContactShortVo voClinicalContact = voSportsActivitySessionShort.getClinicalContact(); if(voCurrentClinicalContact != null && voClinicalContact.getID_ClinicalContact().equals(voCurrentClinicalContact.getID_ClinicalContact())) { currentClinicalContactFound = true; form.recbrSports().newRow(voClinicalContact, "\t\t\t\tClinical Contact: " + voClinicalContact.getStartDateTime()+" - "+ voClinicalContact.getSeenBy(), Color.Green); form.recbrSports().setValue(voClinicalContact); } else { form.recbrSports().newRow(voClinicalContact, "\t\t\t\tClinical Contact: " + voClinicalContact.getStartDateTime()+" - "+ voClinicalContact.getSeenBy()); } } } if(!currentClinicalContactFound && voCurrentClinicalContact != null) loadCurrentClinicalContact(); browseRecord(); }