private boolean populatePatientPositionGrid() { PatientPositionCollection patientPositionColl = (ims.core.vo.lookups.LookupHelper.getPatientPosition(domain.getLookupService())); if (patientPositionColl == null || patientPositionColl.size() == 0) { return false; } form.lyr1().tabDetails().ctn1().grdPosition().getRows().clear(); for (int i = 0; i < patientPositionColl.size(); i++) { grdPositionRow newRow = form.lyr1().tabDetails().ctn1().grdPosition().getRows().newRow(); newRow.setcolPosition(patientPositionColl.get(i).getIItemText()); newRow.setValue(patientPositionColl.get(i)); } return true; }
private String getPosition(PatientPositionCollection positionColl) { String positions = ""; for(int i=0; i<positionColl.size(); i++) positions += positionColl.get(i).getText()+" \n"; return positions; }