macromedia.coldfusion.advanced_techniques
[Top] [All Lists]

Secure Components

Subject: Secure Components
From: "TiGGi"
Date: Fri, 13 Mar 2009 17:43:22 +0000 UTC
Newsgroups: macromedia.coldfusion.advanced_techniques

Hi all
 I am trying to bind a secure cfc to a select box with no success.  I get no 
errors or anything, just no results.
 It works fine if I move the cfc outside the secure area.  As far as the cfc 
it's pretty simple query, returns array, no role security on cffunction.

 Any ideas?


 <cfcomponent output="false">
    <cffunction name="getCat" access="remote" returnType="array">
       <cfset var data="">
       <cfset var result=ArrayNew(2)>
       <cfset var i=0>

   <cfquery name="data" datasource="#Application.DNS#">....
       </cfquery>

       <cfloop index="i" from="1" to="#data.RecordCount#">
          <cfset result[i][1]=data.catID[i]>
          <cfset result[i][2]=data.cat_name[i]>
       </cfloop>

       <cfreturn result>
    </cffunction>
 </cfcomponent>


<Prev in Thread] Current Thread [Next in Thread>