/** * Function used to bind Equipment Provided lookup to grid */ private void bindEquipmentProvided() { // Clear grid form.lyrAdviceMobility().tabMobilityAndEquipment().grdEquipment().getRows().clear(); // Get Equipment values DischargequipmentCollection values = ims.emergency.vo.lookups.LookupHelper.getDischargequipment(domain.getLookupService()); // Add each Equipment to grid if (values != null) { for (int i = 0; i < values.size(); i++) { Dischargequipment equipment = values.get(i); grdEquipmentRow row = form.lyrAdviceMobility().tabMobilityAndEquipment().grdEquipment().getRows().newRow(); row.setColEquipment(equipment.getText()); row.setColEquipmentReadOnly(false); row.setValue(equipment); } } }
/** * Function used to bind Equipment Provided lookup to grid */ private void bindEquipmentProvided() { // Clear grid form.grdEquipment().getRows().clear(); // Get Equipment values DischargequipmentCollection values = ims.emergency.vo.lookups.LookupHelper.getDischargequipment(domain.getLookupService()); // Add each Equipment to grid if (values != null) { for (int i = 0; i < values.size(); i++) { Dischargequipment equipment = values.get(i); grdEquipmentRow row = form.grdEquipment().getRows().newRow(); row.setColEquipment(equipment.getText()); row.setColEquipmentReadOnly(false); row.setValue(equipment); } } }