Thanks All on your input array notation looks like the best route.  I was
using dot notation since I am familiar with it more than any other.
Basically It would appear that my suspicion that it is a CF Language
limitation is correct, but only specific to adding nested structures to
arrays using dot notation.  I say this because in other situations where no
array was involved I have used nested structures 15 structures deep using
dot notation without any issues.

I'm receiving a WDDX packet of a structure from another legacy system that
should/will basically have the described depth, but it might get deeper...

Eric Gilbert
Developer
Stone Ground Solutions
560 Sutter St., Suite 400
San Francisco, CA 94102
415.252.0600 voice
415.252.0123 fax
www.stoneground.com

-----Original Message-----
From: Robert Segal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 16, 2000 1:19 PM
To: CF-Talk
Subject: RE: Nested Structures and Arrays - Addendum


Using array notation or structinsert works, I can't figure out why dot
notation doesn't

Session.Intake.Guardian[1].Employer.Address["StreetAddress"] = "";

or

structinsert(Session.Intake.Guardian[1].Employer.Address,"StreetAddress","")
;

both work.

-----Original Message-----
From: Eric Gilbert [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 16, 2000 11:35 AM
To: CF-Talk
Subject: RE: Nested Structures and Arrays - Addendum


Sorry I miss typed the code, what I meant was

<cfscript>
        Session.Intake = structnew();
        Session.Intake.URLToken = URLToken;
        Session.Intake.Guardian = arrayNew(1);
        Session.Intake.Guardian[1] = structnew();
        Session.Intake.Guardian[1].Employer = structnew();
        Session.Intake.Guardian[1].Employer.Name = "";
        Session.Intake.Guardian[1].Employer.Address = structnew();

        //Works great till here
        Session.Intake.Guardian[1].Employer.Address.StreetAddress = "";
</cfscript>

I still get the error:
        "The member "EMPLOYER.ADDRESS" in dimension 1 of object
"Session.Intake.Guardian" cannot be found. Please, modify the member name"

-----Original Message-----
From: Christopher Olive, CIO [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 16, 2000 7:17 AM
To: CF-Talk
Subject: RE: Nested Structures and Arrays


you haven't declared Session.Intake.Parent as anything yet.

chris olive, cio
cresco technologies
[EMAIL PROTECTED]
http://www.crescotech.com



-----Original Message-----
From: Eric Gilbert [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 15, 2000 9:01 PM
To: CF-Talk
Subject: Nested Structures and Arrays


I'm encountering something odd, and I'm not sure if it is a bug with the
version of CFServer I'm using or a deeper CF language issue.

I get the error:
        "The member "EMPLOYER.ADDRESS" in dimension 1 of object
"Session.Intake.Parent" cannot be found. Please, modify the member name"

when I try to execute the following script block (with proper locking......)

<cfscript>
        Session.Intake = structnew();
        Session.Intake.URLToken = URLToken;
        Session.Intake.Guardian = arrayNew(1);
        Session.Intake.Guardian[1] = structnew();
        Session.Intake.Guardian[1].Employer = structnew();
        Session.Intake.Guardian[1].Employer.Name = "";
        Session.Intake.Guardian[1].Employer.Address = structnew();

        //Works great till here
        Session.Intake.Parent[1].Employer.Address.StreetAddress = "";
</cfscript>


I'm running PWS on Win98 with a developer's edition of CFServer.

Server Product ColdFusion Server
 Version 4, 0, 0, 0




Eric Gilbert
Developer
Stone Ground Solutions
560 Sutter St., Suite 400
San Francisco, CA 94102
415.252.0600 voice
415.252.0123 fax
www.stoneground.com

----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]

----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]

----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
https://secure.houseoffusion.com

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to