private void populateRecordBrowser(VitalSignsLiteVoCollection voColl) { if(voColl == null) return; form.recbrHistory().clear(); for (int i = 0; i < voColl.size(); i++) { VitalSignsLiteVo vo = voColl.get(i); form.recbrHistory().newRow(voColl.get(i), getAuthoring(vo)); } if (form.getLocalContext().getEditedRecordIsNotNull()) form.recbrHistory().setValue(form.getLocalContext().getEditedRecord()); else form.recbrHistory().setValue(voColl.get(0)); }
private String getAuthoring(VitalSignsLiteVo vo) { StringBuffer sb = new StringBuffer(); if(vo != null) { if(vo.getAuthoringInformationIsNotNull()) { if (vo.getAuthoringInformation().getAuthoringHcpIsNotNull()) { sb.append(vo.getAuthoringInformation().getAuthoringHcp().toString()); } if (vo.getAuthoringInformation().getAuthoringDateTimeIsNotNull()) { sb.append(" " + vo.getAuthoringInformation().getAuthoringDateTime().toString()); } } } return sb.toString(); }