Did you try to create ArrayList, and after every interation say somethinh like
[Bindable] var myArray:ArrayList = new ArrayList(); later et the end of loop ( but stil inside) make sometihg like myArray.addChiled(object) I hope this helped On Jan 18, 3:54 pm, pradeepflex <[email protected]> wrote: > Hello Friends, > > i have the xml file as below > <section ID="MyWorkforce_Data" title="" tooltip="" Type="Grid"> > - <rows> > - <row> > - <fields> > <field ID="COLLEAGUE_NAME" value="West,Anthony" tooltip="" /> > <field ID="POSITION_TITLE" value="Senior Scientist" tooltip="" /> > <field ID="COUNTRY" value="United Kingdom" tooltip="" /> > <field ID="LOCATION_DESC" value="Sandwich" tooltip="" /> > <field ID="PAY_GRADE" value="008" tooltip="" /> > <field ID="BONUS_ELIGIBLE" value="No" tooltip="" /> > <field ID="POSITION_ID" value="00002589" tooltip="" /> > <field ID="DIVISION" value="Global R&D" tooltip="" /> > <field ID="DEPT" value="Research Analytical" tooltip="" /> > <field ID="Job Code Description" value="Senior Scientist" > tooltip="" /> > <field ID="Z_JOB_FUNC_DESCR" value="Sciences" tooltip="" /> > <field ID="Z_SUB_FUNC_DESCR" value="" tooltip="" /> > <field ID="JOB_FAMILY_DESCR" value="" tooltip="" /> > <field ID="CAREER_TRACK" value="" tooltip="" /> > <field ID="CAREER_TRACK_LEVEL" value="" tooltip="" /> > </fields> > </row> > - <row> > - <fields> > <field ID="COLLEAGUE_NAME" value="Harris,Tammy" tooltip="" /> > <field ID="POSITION_TITLE" value="Principal Scientist" tooltip="" / > > <field ID="COUNTRY" value="United Kingdom" tooltip="" /> > <field ID="LOCATION_DESC" value="Sandwich" tooltip="" /> > <field ID="PAY_GRADE" value="009" tooltip="" /> > <field ID="BONUS_ELIGIBLE" value="No" tooltip="" /> > <field ID="POSITION_ID" value="00003333" tooltip="" /> > <field ID="DIVISION" value="Global R&D" tooltip="" /> > <field ID="DEPT" value="Research Analytical" tooltip="" /> > <field ID="Job Code Description" value="Principal Scientist" > tooltip="" /> > <field ID="Z_JOB_FUNC_DESCR" value="Sciences" tooltip="" /> > <field ID="Z_SUB_FUNC_DESCR" value="" tooltip="" /> > <field ID="JOB_FAMILY_DESCR" value="" tooltip="" /> > <field ID="CAREER_TRACK" value="" tooltip="" /> > <field ID="CAREER_TRACK_LEVEL" value="" tooltip="" /> > </fields> > </row> > - <row> > - <fields> > <field ID="COLLEAGUE_NAME" value="Cram,Brian" tooltip="" /> > <field ID="POSITION_TITLE" value="Senior Scientist" tooltip="" /> > <field ID="COUNTRY" value="United Kingdom" tooltip="" /> > <field ID="LOCATION_DESC" value="Sandwich" tooltip="" /> > <field ID="PAY_GRADE" value="008" tooltip="" /> > <field ID="BONUS_ELIGIBLE" value="No" tooltip="" /> > <field ID="POSITION_ID" value="00229457" tooltip="" /> > <field ID="DIVISION" value="Global R&D" tooltip="" /> > <field ID="DEPT" value="Research Analytical" tooltip="" /> > <field ID="Job Code Description" value="Senior Scientist" > tooltip="" /> > <field ID="Z_JOB_FUNC_DESCR" value="Sciences" tooltip="" /> > <field ID="Z_SUB_FUNC_DESCR" value="" tooltip="" /> > <field ID="JOB_FAMILY_DESCR" value="" tooltip="" /> > <field ID="CAREER_TRACK" value="" tooltip="" /> > <field ID="CAREER_TRACK_LEVEL" value="" tooltip="" /> > </fields> > </row> > - <row> > - <fields> > <field ID="COLLEAGUE_NAME" value="" tooltip="" /> > <field ID="POSITION_TITLE" value="Senior Associate Scientist" > tooltip="" /> > <field ID="COUNTRY" value="United Kingdom" tooltip="" /> > <field ID="LOCATION_DESC" value="Sandwich" tooltip="" /> > <field ID="PAY_GRADE" value="004" tooltip="" /> > <field ID="BONUS_ELIGIBLE" value="No" tooltip="" /> > <field ID="POSITION_ID" value="10062695" tooltip="" /> > <field ID="DIVISION" value="Global R&D" tooltip="" /> > <field ID="DEPT" value="Research Analytical" tooltip="" /> > <field ID="Job Code Description" value="Senior Associate Scientist" > tooltip="" /> > <field ID="Z_JOB_FUNC_DESCR" value="Sciences" tooltip="" /> > <field ID="Z_SUB_FUNC_DESCR" value="" tooltip="" /> > <field ID="JOB_FAMILY_DESCR" value="" tooltip="" /> > <field ID="CAREER_TRACK" value="" tooltip="" /> > <field ID="CAREER_TRACK_LEVEL" value="" tooltip="" /> > </fields> > </row> > - <row> > - <fields> > <field ID="COLLEAGUE_NAME" value="Chacko,Christopher" tooltip="" /> > <field ID="POSITION_TITLE" value="Senior Associate Scientist" > tooltip="" /> > <field ID="COUNTRY" value="United Kingdom" tooltip="" /> > <field ID="LOCATION_DESC" value="Sandwich" tooltip="" /> > <field ID="PAY_GRADE" value="004" tooltip="" /> > <field ID="BONUS_ELIGIBLE" value="No" tooltip="" /> > <field ID="POSITION_ID" value="10138464" tooltip="" /> > <field ID="DIVISION" value="Global R&D" tooltip="" /> > <field ID="DEPT" value="Research Analytical" tooltip="" /> > <field ID="Job Code Description" value="Senior Associate Scientist" > tooltip="" /> > <field ID="Z_JOB_FUNC_DESCR" value="Sciences" tooltip="" /> > <field ID="Z_SUB_FUNC_DESCR" value="" tooltip="" /> > <field ID="JOB_FAMILY_DESCR" value="" tooltip="" /> > <field ID="CAREER_TRACK" value="" tooltip="" /> > <field ID="CAREER_TRACK_LEVEL" value="" tooltip="" /> > </fields> > </row> > - <row> > - <fields> > <field ID="COLLEAGUE_NAME" value="Catalina,Andrew" tooltip="" /> > <field ID="POSITION_TITLE" value="Senior Associate Scientist" > tooltip="" /> > <field ID="COUNTRY" value="United Kingdom" tooltip="" /> > <field ID="LOCATION_DESC" value="Sandwich" tooltip="" /> > <field ID="PAY_GRADE" value="004" tooltip="" /> > <field ID="BONUS_ELIGIBLE" value="No" tooltip="" /> > <field ID="POSITION_ID" value="10138465" tooltip="" /> > <field ID="DIVISION" value="Global R&D" tooltip="" /> > <field ID="DEPT" value="Research Analytical" tooltip="" /> > <field ID="Job Code Description" value="Senior Associate Scientist" > tooltip="" /> > <field ID="Z_JOB_FUNC_DESCR" value="Sciences" tooltip="" /> > <field ID="Z_SUB_FUNC_DESCR" value="" tooltip="" /> > <field ID="JOB_FAMILY_DESCR" value="" tooltip="" /> > <field ID="CAREER_TRACK" value="" tooltip="" /> > <field ID="CAREER_TRACK_LEVEL" value="" tooltip="" /> > </fields> > </row> > - <row> > - <fields> > <field ID="COLLEAGUE_NAME" value="Cancelosi,Chad" tooltip="" /> > <field ID="POSITION_TITLE" value="Scientist" tooltip="" /> > <field ID="COUNTRY" value="United Kingdom" tooltip="" /> > <field ID="LOCATION_DESC" value="Sandwich" tooltip="" /> > <field ID="PAY_GRADE" value="006" tooltip="" /> > <field ID="BONUS_ELIGIBLE" value="No" tooltip="" /> > <field ID="POSITION_ID" value="10142683" tooltip="" /> > <field ID="DIVISION" value="Global R&D" tooltip="" /> > <field ID="DEPT" value="Research Analytical" tooltip="" /> > <field ID="Job Code Description" value="Scientist" tooltip="" /> > <field ID="Z_JOB_FUNC_DESCR" value="Sciences" tooltip="" /> > <field ID="Z_SUB_FUNC_DESCR" value="" tooltip="" /> > <field ID="JOB_FAMILY_DESCR" value="" tooltip="" /> > <field ID="CAREER_TRACK" value="" tooltip="" /> > <field ID="CAREER_TRACK_LEVEL" value="" tooltip="" /> > </fields> > </row> > </rows> > </section> > > from this file i have a text box when we give any input data related > to xml file and find the data and display > that correspondiing data into the datagrid...... > > in this i written some code like > > i placed the field values in the hashmap object but while iteration it > is stored only the last row in the xml file > > this is my iteration code... > > if (it...@id == "MyWorkforce_Data") > { > for each(var ids in > item.rows.row.fields.field) > { > > ropLables.put(i...@id,i...@value); > > trace(ropLables.getValue(i...@id)); > } > } > > after finish all iteration hashmap object have only last row of the > xml file.. > > Thanks for any help... > > Regards, > Pradeep
-- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

