vchris Posted April 2, 2009 Share Posted April 2, 2009 I'm working on a cfcomponent application. I currently have 2 functions in my cfcomponent. My first function is getData which queries the DB and takes 2 arguments. My second function is buildTable which builds a table out of the query from getData. The problem I have is I get the error "Variable MYTABLE is undefined". myTable is created in my buildTable function. <cfinvoke component="emissions" method="getData" returnvariable="myTable"><cfinvokeargument name="year" value="2007" /><cfinvokeargument name="location" value="BC" /></cfinvoke><cfdump var="#myTable#" /> EDIT:I got the problem resolved! Instead of my getData function calling buildTable I have buildTable calling getData and that seems to work Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.