Quantcast
Channel: Adobe Community : Popular Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 14291

CFclient return "undefined"

$
0
0

Hello,

 

I'm new in ColdFusion development and I'm trying return some value from de function on component.

But independent of the return type, the value is aways "undefined".

 

This is my function:

<cffunction name="getAll" returntype="query" access="remote" returnformat="JSON"

  hint="Fetches employee rows from Employee table and returns array of EmployeeTO components">

 

  <cfquery datasource="cg_sindicontaba" name="empRs" result="test">

  select * from tab_001_tes_car

  </cfquery>

 

  <cfreturn empRs>

  </cffunction>

 

And here I call:

<cfset empMgr = new cfc_tes_car_mob() />

<cfset qEmp = empMgr.getAll() />

 

Thanks.


Viewing all articles
Browse latest Browse all 14291

Trending Articles