/** * Function used to bind Patient Mobility lookup to grid */ private void bindPatientMobilityGrid() { // Clear grid form.lyrAdviceMobility().tabMobilityAndEquipment().grdMobility().getRows().clear(); // Get PatientMobility values PatientMobilityCollection values = LookupHelper.getPatientMobility(domain.getLookupService()); // Add each Patient Mobility to grid if (values != null) { for (int i = 0; i < values.size(); i++) { PatientMobility mobility = values.get(i); grdMobilityRow row = form.lyrAdviceMobility().tabMobilityAndEquipment().grdMobility().getRows().newRow(); row.setColMobility(mobility.getText()); row.setColMobilityReadOnly(false); row.setValue(mobility); } } }
/** * Function used to bind Patient Mobility lookup to grid */ private void bindPatientMobilityGrid() { // Clear grid form.grdMobility().getRows().clear(); // Get PatientMobility values PatientMobilityCollection values = LookupHelper.getPatientMobility(domain.getLookupService()); // Add each Patient Mobility to grid if (values != null) { for (int i = 0; i < values.size(); i++) { PatientMobility mobility = values.get(i); grdMobilityRow row = form.grdMobility().getRows().newRow(); row.setColMobility(mobility.getText()); row.setColMobilityReadOnly(false); row.setValue(mobility); } } }