Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7080117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:45:20+00:00 2026-05-28T06:45:20+00:00

I need to get the data for each row in an advanceddatagrid where the

  • 0

I need to get the data for each row in an advanceddatagrid where the nodes are open.

For example, my ADG looks like this:

+ Science
- Math
  - Passed
     John Doe    |  A+  |  Section C
     Amy Rourke  |  B-  |  Section B
  - Failed
     Jane Doe    |  F   |  Section D
     Mike Cones  |  F   |  Section D
- English
  + Passed
  + Failed
- History
  + Passed
  - Failed
     Lori Pea    |   F  |  Section C

I tried using the following code to get the open nodes:

var o:Object = new Object();
o = IHierarchicalCollectionView(myADG.dataProvider).openNodes;

But doing the following code to inspect the object:

Alert.show(ObjectUtil.toString(o), 'object inpsection');

Gives me:

(Object)#0
  Math (2)
    children = (mx.collections::ArrayCollection)#2
      filterFunction = (null)
      length = 2
      list = (mx.collections::ArrayList)#3
        length = 2
        source = (Array)#4
          [0] (Object)#5
            children = (mx.collections::ArrayCollection)#6
              filterFunction = (null)
              length = 2
              list = (mx.collections::ArrayList)#7
                length = 2
                source = (Array)#8
                  [0] <Table>
    <Name>John Doe</Name>
    <Grade>A+</Grade>
    <Section>Section C</Section>
</Table>
                  [1] <Table> 
    <Name>Amy Rourke</Name>
    <Grade>B-</Grade>
    <Section>Section B</Section>
....
...
..

Basically, I just need to create an object or array or xmllist that would give me:

Math    |   Passed  |   John Doe    |   A+  |   Section C
Math    |   Passed  |   Amy Rourke  |   B-  |   Section B
Math    |   Failed  |   Jane Doe    |   F   |   Section D
Math    |   Failed  |   Mike Cones  |   F   |   Section D
History |   Failed  |   Lori Pea    |   F   |   Section C

Any suggestion would be highly appreciated. Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:45:20+00:00Added an answer on May 28, 2026 at 6:45 am

    You should be able to iterate across the openNodes object’s properties and for each one grab the collection and concat the values onto a new array then use that as the source of another type of collection if necessary. Something like this:

    var newArray:Array = [];
    for(var property:String in o)
    {
        newArray = newArray.concat(o[property][0].source); //Passed, property is subject as in Math
        newArray = newArray.concat(o[property][1].source); //Failed property is subject as in Math
    }
    

    The only real problem with this is you’re trying to also keep the Math and passed or failed in the objects, otherwise the above should work. To get this other part working I think you need to break each of the statements above into it’s own loop that iterates across the source of the openNodes object and puts the right values into a new Value Object you make up that has the subject and the pass or fail set on it. Then you could store these values as well, also notice I’m assuming the pass fail is always organized this way in the original data structure where in each subject you’ll have two arrays and the first will be pass followed by fail.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have this set of data that we need to get the average of
We need to get data out of an older accounting system. We have received
I need to get some external data to form an output file name in
I need a method to get the data from an external editor. def _get_content():
I need to figure out how to get the data from D3D textures and
I often have data in Excel or text that I need to get into
I've got data in an NSSet, and I need to get it into an
My gwt project have flexTable show data of image and button on each row
I want to have/define a unique id for each data row in my Excel
I have a large data table that contains a checkbox for each row. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.