private void populateAreaCombo(TrackingAreaLiteVoCollection areaColl) { form.cmbArea().clear(); if (areaColl==null || areaColl.size()==0) return; for (int i=0;i<areaColl.size();i++) { form.cmbArea().newRow(areaColl.get(i), areaColl.get(i).getAreaDisplayName()); } }
public TrackingAreaLiteVoCollection getAreasByLocation(LocationRefVo locationRef) { if( locationRef == null ) return null; DomainFactory factory = getDomainFactory(); List <?> trackingAreas = null; String hsql = "select t1_1 from TrackingArea as t1_1 left join t1_1.eDLocation as l1_1 where l1_1.id = :idLocation "; trackingAreas = factory.find(hsql, new String[] {"idLocation"}, new Object[] {locationRef.getID_Location()}); return TrackingAreaLiteVoAssembler.createTrackingAreaLiteVoCollectionFromTrackingArea(trackingAreas); }