variables.beanDataArray = ArrayNew(1); var beanArray = ArrayNew(1); var bean_i = ""; // Get the bean struct object var beanConfigStruct = server.ADF.beanConfig.GETCONFIGSTRUCT(); var beanKeyList = StructKeyList(beanConfigStruct); var currBeanName = ""; var currStruct = StructNew(); // loop over the bean list for ( bean_i = 1; bean_i LTE ListLen(beanKeyList); bean_i = bean_i + 1) { currBeanName = ListGetAt(beanKeyList, bean_i); // Check that the path is "ADF.lib." if ( (ListGetAt(beanConfigStruct[currBeanName].path,1,'.') EQ "ADF") AND (ListGetAt(beanConfigStruct[currBeanName].path,2,'.') EQ "lib") ) { currStruct = StructNew(); currStruct = beanConfigStruct[currBeanName]; currStruct.beanName = currBeanName; currStruct.metadata = variables.dbService.getMetaDataForCFC(currStruct.path); currStruct.wikiTitle = variables.dbService.getWikiTitle(currStruct.metadata.properties); ArrayAppend(beanArray, currStruct); } } // Sort the data before sending back // Sort by the path for the CFC in the library variables.beanDataArray = application.ADF.data.arrayOfStructsSort(aOfS=beanArray, key="path"); setBeanDataArray();