Index: /trunk/grails-app/controllers/CostCodeDetailedController.groovy
===================================================================
--- /trunk/grails-app/controllers/CostCodeDetailedController.groovy	(revision 953)
+++ /trunk/grails-app/controllers/CostCodeDetailedController.groovy	(revision 954)
@@ -13,8 +13,13 @@
     def list = {
         params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
+        def associatedPropertyMax = 1000
+        def associatedPropertyValues = [:]
+        def purchasingGroupNameQuery = 'select distinct a.name from PurchasingGroup a where a.isActive = ? order by a.name'
+        associatedPropertyValues.purchasingGroupList = PurchasingGroup.executeQuery(purchasingGroupNameQuery, [true], [max:associatedPropertyMax])
 
         if(!params.filter) {
             return [costCodeInstanceList: CostCode.list(params),
                     costCodeInstanceTotal: CostCode.count(),
+                    associatedPropertyValues: associatedPropertyValues,
                     filterParams: params]
         }
@@ -23,4 +28,5 @@
         return[ costCodeInstanceList: filterService.filter( params, CostCode ),
                 costCodeInstanceTotal: filterService.count( params, CostCode ),
+                associatedPropertyValues: associatedPropertyValues,
                 filterParams: com.zeddware.grails.plugins.filterpane.FilterUtils.extractFilterParams(params),
                 params:params ]
Index: /trunk/grails-app/views/costCodeDetailed/list.gsp
===================================================================
--- /trunk/grails-app/views/costCodeDetailed/list.gsp	(revision 953)
+++ /trunk/grails-app/views/costCodeDetailed/list.gsp	(revision 954)
@@ -97,5 +97,5 @@
                                    class="overlayPane"
                                    associatedProperties="purchasingGroup.name"
-                                   filterPropertyValues="${['purchasingGroup.name':[values:PurchasingGroup.findAllByIsActive(true)]]}" />
+                                   filterPropertyValues="${['purchasingGroup.name':[values: associatedPropertyValues.purchasingGroupList]]}" />
 
         </div>
