I am not clear on what you want/are experiencing.....?

Are you saying your nested structures are not supposed to be structures?
....Why all this talk about structures, surely the only struct you want is
the one to WDDX, and the rest should be simple key > value pairs?

-----Original Message-----
From: Patti G. L. Hall [mailto:[EMAIL PROTECTED]]
Sent: 14 January 2003 16:49
To: CF-Talk
Subject: Re: WDDX bug?: structure keys into arrays unintentionally


I tried my own version of this test... A very simple structure with a nested
structure and a simple key.  No problem. It wddxed just fine.  So great.
I'm running into one of those, 'so difficult to reproduce it must be user
error, go read the manual' things.  Great.

The code I used to try to reproduce the problem (that didn't create the
behavior at all)

[cfscript]
            teststruct = structnew();
            teststruct.foo = 'bar';
            teststruct.foofoo = structnew();
            teststruct.foofoo.bar = 'foo';
[/cfscript] 

[cfdump var="#teststruct#"]

[cfwddx input="#teststruct#" output="wddxteststruct" action="cfml2wddx"

[cfdump var="#wddxteststruct#"]


Robertson-Ravo, Neil (RX) wrote:

> <cfscript>
> foo = structnew();
> temp = StructInsert(foo,"Doprotocol", 1,"yes");
> temp = StructInsert(foo,"eventdate", "2002-01-09","yes");
> temp = StructInsert(foo,"gender",  "male","yes");
> </cfscript>
> <cfwddx action="CFML2WDDX" input="#foo#" output="myfoo">
> <cfdump var="#foo#"> 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to