<cfwddx action="wddx2cfml" input="myXML" output="myQRY">
<cfif not ListFind(myQRY.ColumnList,"myColumn")>
Column does not exist
<cfelse>
blah blah blah
</cfif>
should work for you!
-----Original Message-----
From: Ben Lowndes [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 24, 2000 9:59 AM
To: CF-Talk List (E-mail)
Subject: is column in query or wddx.
Hi,
I'm experimenting with WDDX and am trying to parse a wddx packet to display
as HTML. The problem is I am dynamically generating the WDDX packet and am
never sure what coulmns it contains. so, after deserialing back to CFML e.g:
<CFWDDX ACTION="WDDX2CFML" INPUT="#xmlfromgate#" OUTPUT="cfmloutput">
Is there anyway to "probe" the query to see if a column exists?
e.g (i know this doesn't work):
<CFIF IsDefined(cfmloutput.mycolumn)>
Yes, mycolumn exists.
<CFELSE>
no, mycolumn isn't in this query.
</CFIF>
Thanks
Ben.
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.