Have you tried using a different name besides just "cell"? 

My first thought was that you may be creating some confusion between
your component and something else - used internally by those CF
spreadsheet features for example. 

It's a total guess, but hopefully easy enough for you to eliminate from
the list of possible causes. 

Al 

On 2013-07-10 07:50, Aaron J. White wrote: 

> Hello Guys, 
> 
> I am getting the error at the bottom of this message when I try to return a 
> component from another component. The odd thing is that I don't always get 
> the error and sometimes (rarely) it works just fine. Also, it looks like I am 
> confusing OpenBD with my mapping to the cfc folder. I am sure I am making 
> some simple mistake so if anyone is able to point it out to me I would be 
> grateful. 
> 
> I am returning a component called cell from another component called grid and 
> both components are in my cfc folder in the root of my application. 
> 
> In my application.cfc I use a mapping like: <cfmapping logicalpath="cfc" 
> relativepath="cfc/" /> 
> 
> I create objects just fine like: <cfset grid = createObject("component", 
> "cfc.grid").init() /> 
> 
> The grid.getCell() function is simply: 
> 
> <cffunction name="getCell" RETURNTYPE="cell" access="public" output="false" 
> hint="gets the cell with the given name"> 
> 
> <cfargument name="name" type="string" /> 
> 
> <cfset cell = variables.cells[arguments.name] /> 
> 
> <cfreturn cell /> 
> 
> </cffunction> 
> 
> STRUCT 
> 
> column 
> 
> 2 
> 
> detail 
> 
> Function: getCell 
> 
> errorcode 
> 
> errorCode.runtimeError 
> 
> errorlogfile 
> 
> [REMOVED] 
> 
> extendedinfo 
> 
> FORMAL TYPE: CELL, ACTUAL TYPE: CFC.CELL, [REMOVED]/cfc/cell.cfc 
> 
> line 
> 
> 194 
> 
> message 
> 
> The value returned from function getCell() is not of type cell 
> 
> Again, thanks for any help. 
> 
> Aaron J. White 
> 
> -- 
> -- 
> online documentation: http://openbd.org/manual/ [1]
> http://groups.google.com/group/openbd?hl=en [2]
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Open BlueDragon" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out [3].



Links:
------
[1] http://openbd.org/manual/
[2] http://groups.google.com/group/openbd?hl=en
[3] https://groups.google.com/groups/opt_out

-- 
-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Open 
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to