The reason you are getting [object Object] is because you are not specifying
which property you want from the ArrayCollection.  If you, for example have
an XML file:

…

<foo>

                <name>Robert</name>

                <dept>01</dept>           

</foo>

<foo>

                <name>Andy</name>

                <dept>02</dept>           

</foo>

 

Then when you bind it:

indeptApprovers = event.result.INDEPT;

 

On your trace you need to:

Trace(indeptApprovers.name); where name represents the node name from the
XML file your output would be

Robert

Andy

 

Hope this helps with that part.  

 

Your other questions seems easy to, but I’d like for you to explain it to me
in simple business terms.  

 

·         What is the business requirement.  What specifically are you
trying to do, what is the business problem here?

·         The prodeduce you spoke off, can you show me exactly what it is
expecting?

o   (i.e., (A T-SQL example) 

§  Create procedure sProc_tbl_SOMETHING

§  @param1 nvarchar(150),

§  @param2 nvarchar(150),

§  As

§  …. Do some processing here

o   Can you put in the format of a function like function1(param1:string,
param2:string); or are you expecting an function1(args:Object) object as the
argument?

·         Either way, can you please clarify?

 

Hope this helps…

 

Regards,

 

Robert A. Green, MBA

Done Right Solutions

Sr. IT Consultant

2591 Piedmont Road

Suite 2416

Atlanta, GA 30324

web:     <http://www.drrobertgreen.com/> http://www.DoneRightSolutions.com 

email:   <mailto:[email protected]> [email protected] 

Linked:  <http://www.linkedin.com/in/RobertAGreen>
http://www.LinkedIn.com/in/RobertAGreen 

direct: +1 678 457 2844

fax:      +1 678 212 5051

 

My Thoughts Become My Words, My Words Become My Actions, My Actions Become
My Habits, My Habits Become My Character, and My Character Determines My
Destiny

 

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material. Any review, retransmission, dissemination or other use
of, or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from all
computers. GA625

 

From: [email protected] [mailto:[email protected]] On Behalf Of
[email protected]
Sent: Monday, January 12, 2009 5:09 PM
To: [email protected]
Subject: Re: [AFFUG Discuss] Another (probably) stupid question...

 


Tr y this 
this.indeptApprovers = event.result.INDEPT as ArrayCollection; 


Jay Jayaraman
Central Billing Services
Financial Management and Planning
(404) 498-8453 (W)
(404) 273-7131 (C) 




"Fox, Andrew J" <[email protected]> 
Sent by: [email protected] 

01/12/2009 04:33 PM 


Please respond to
[email protected]


To

discussion <[email protected]> 


cc

        

Subject

[AFFUG Discuss] Another (probably) stupid question...

 

                




I need to take the data from one column of a DataGrid, add a constant,
specify row and column delimiters, do the same for two additional ComboBox
fields with the same data structure, then pass all of that to a stored
procedure when the user clicks the Save button.  Is there any easy way of
doing this? 

What the procedure is expecting is something like this:
bsmith3, internal; jdoe4, internal; sgreen2, internal; sgrant3, external;

The dataProvider is a Bindable ArrayCollection that specifies the array (one
of three returned):

[Bindable]
private var indeptApprovers:ArrayCollection = new ArrayCollection();
...
this.indeptApprovers = event.result.INDEPT;
this.INDEPT_APPROVERS.dataProvider = indeptApprovers;


When I do a trace(indeptApprovers), I get "[object Object],[object
Object]"(repeated for the number of records in the result set - 2 in this
case.)
-- 
Andy Fox
Systems Analyst III
Georgia Tech OIT-EIS
404-894-4413


-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------




------------------------------------------------------------- 
To unsubscribe from this list, simply email the list with unsubscribe in the
subject line 

For more info, see http://www.affug.com 
Archive @ http://www.mail-archive.com/discussion%40affug.com/ 
List hosted by FusionLink <http://www.fusionlink.com>  
------------------------------------------------------------- 




-------------------------------------------------------------

To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line



For more info, see http://www.affug.com

Archive @ http://www.mail-archive.com/discussion%40affug.com/

List hosted by http://www.fusionlink.com

-------------------------------------------------------------

Reply via email to