On 3/21/07, Scott Stewart <[EMAIL PROTECTED]> wrote:
> I've got a component that runs a query. The query returns a bunch of HTML in
> a MS Access memo field.
>
> When I invoke the query I set a return variable called bodyStruct. I can
> dump this variable and see the contents
>
> <cfset BodyObj=CreateObject("component","webControl")>
>
> <cfinvoke component="#BodyObj#" method="getBody"
> returnvariable="bodyStruct">
>
> When I try to use it in a cfoutput I get the following error
> Complex object types cannot be converted to simple values.

> Any ideas n how to output this sucker?

if you're returning a structure, you'll need to reference the keys
within the structure (e.g.
<cfoutput>#bodyStruct.keyNameHere#</cfoutput>.

you can't just <cfoutput>#bodyStruct#</cfoutput> because (like an
array or a query) it's a complex object.

-- 
Charlie Griefer

================================================
"...All the world shall be your enemy, Prince with a Thousand Enemies,
and whenever they catch you, they will kill you. But first they must catch
you, digger, listener, runner, prince with a swift warning.
Be cunning and full of tricks and your people shall never be destroyed."

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273331
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to