Hey guys,
I followed this seemingly great article, and I've found that in the Crud.cfc
portion of the example (here specifically)...
1:cfcomponent output=false
2: cffunction name=getData access=remote returntype=Query
3: cfset var local = {} /
cfquery
In my example I have:
cfcomponent output=false
cffunction name=getData access=remote returntype=query
output=false
cfargument name=keywords type=string required=false /
cfset var local = structNew() /
then ...cfquery
brad
On Wed, Apr 8, 2009 at 4:51 PM, dmkramerica
Change the line to this, and it'll probably work
cfset var local = structnew() /
Or this
cfset var local.q = /
I've never seen the {} syntax before, but I assume it is shorthand for
creating a structure.
You could comment out line 3 completely, but then your 'local.q'
variable would
That worked in the sense that it's now a structure and the cfc works and
the test cfinvoke and cfdump works, but no data in the .swf, but that's
certainly progress in the right direction.
I guess now it's down to my remote object call because the rest of my
code is exactly the same as the demo
4 matches
Mail list logo