<cfset fields = "CustomerID,ContactTitle,ContactName">
<cfquery name="qryTest2" datasource="northwind">
select top 1 #Fields#
from customers
</cfquery>
<cfwddx action="CFML2WDDX" input="#qrytest2#" output="qoutput">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<cfwddx action="WDDX2CFML" input="#qoutput#" output="foutput">
<cfoutput>
<table>
<cfloop index="fieldname" list="#fields#" delimiters=",">
<tr>
<td bgcolor="Yellow" align="right">
#Fieldname#:
</td>
<td>
#Evaluate("foutput." & Fieldname)#
</td>
</tr>
</cfloop>
</table>
</cfoutput>
</body>
</html>
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, January 12, 2001 8:31 AM
Subject: Re: wddx??
> Well I have a start. It is out putting the wddx packet to .cfm form
fields.
> Now to see if I can get these wddx output fields to show inside another
> query.
> ------------------
> <cfoutput query="formbuildingquery">
> #wddxquery.fieldname#
> </cfoutput>
> --------------
> This works as I needed.
> <cfquery name="qryTest2" datasource="northwind">
> select top 1 CustomerID, ContactTitle, ContactName
> from customers
> </cfquery>
> <cfwddx action="CFML2WDDX" input="#qrytest2#" output="qoutput">
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>
> <html>
> <head>
> <title>Untitled</title>
> </head>
> <body>
> <cfwddx action="WDDX2CFML" input="#qoutput#" output="foutput">
> <cfoutput>
> <table>
> <tr>
> <td>
> #foutput.customerID#
> </td>
> </tr>
> <tr>
> <td>
> #foutput.ContactTitle#
> </td>
> </tr>
> <tr>
> <td>
> #foutput.ContactName#
> </td>
> </tr>
> </table>
> </cfoutput>
> </body>
> </html>
> ----- Original Message -----
> From: "Neil Giarratana" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Friday, January 12, 2001 7:56 AM
> Subject: RE: wddx??
>
>
> > Not sure where you're going with this. I would expect that if you did a
> > "View Source" on the page, you would see your wddx code exactly as you
> have
> > it. Are you expecting it to show as a tree in IE5 like documents with
an
> > ..xml extension? How are you intending it to display?
> >
> > Regards,
> > Neil
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists