I am trying to create a new object  that will contain the parameters 
to a CFC call. The object itself will contain another object. For 
some reason, what should be quite simple does not work as planned. 
Below is an extract from my AS code:

function generateReport() {
                var ReportData:Object = new Object();
                var EQUIP:Object = new Object();
                
                ReportData.PROJECTID = initVal.PROJECTID;
                ReportData.CITY = initVal.CITY;
                ReportData.POSTALCODE = initVal.POSTALCODE;
                                
                rootnode = deviceTree.dataProvider.getTreeNodeAt(0);
... Code to traverse the Tree and add elements to the EQUIP object.

                initVal.EQUIP = EQUIP;
                ReportData.EQUIP = EQUIP;
}

I used the following code to debug the structure:
var myDebugger:XMLObjectOutput = new XMLObjectOutput() ;
                myDebugger.traceObject(initVal, 'Dump of InitVal');
                myDebugger.traceObject(ReportData, 'Dump of 
ReportData');

The XMLObjectOutput has written the following trace in the 
Flashlog.txt file:

Dump of InitVal  [object Object]
 |-- EQUIP [object]
       |-- NBR6: 0
       |-- NBR5: 0
       |-- NBR4: 0
       |-- NBR3: 0
       |-- NBR2: 0
       |-- EQUIP1E1: 55
       |-- EQUIP1C1: 5555
       |-- EQUIP1N1: 5
       |-- NBR1: 1
 |-- PROVINCE: QC
 |-- CITY: Quebec
 |-- POSTALCODE: G1K 7D7
 |-- PROJECTID: 295
Dump of ReportData  [object Object]
 |-- EQUIP [object]
       |--  [self reference - will not trace]
 |-- POSTALCODE: G1K 7D7
 |-- CITY: Quebec
 |-- PROJECTID: 295

As you see, the assignment ReportData.EQUIP = EQUIP does not seem to 
work. The InitVal structure is defined as an Object and was assigned 
values as a result of another CFC call.

Any ideas?

Thanks

Mario







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




Reply via email to