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 8204053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:46:18+00:00 2026-06-07T07:46:18+00:00

I have a tree datastructure with nested data. TreeNodes and DataNodes. Like in a

  • 0

I have a tree datastructure with nested data.

TreeNodes and DataNodes. Like in a filesystem, the TreeNodes are the folders and the DataNodes are the files.

But the JSON structure is like this:

{
  name: 'root',
  data: [
    [a, b, 100, 23],
    [a, b, 100, 23],
    [a, b, 100, 23]
    ...
  ]
  children: [
    {
      name: 'child1',
      data: [...],
      children: [...]
    },
    {
      name: 'child2',
      data: [...],
      children: [...]
    },
    ...
  ]
}

I want to parse the children to TreeNodes and the data arrays to DataNodes, and use them in one TreeStore.

Is this possible?

ATM I got TreeNodes and every Tree node has an association for its data records, which is a suboptimal solution.

  • 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-06-07T07:46:20+00:00Added an answer on June 7, 2026 at 7:46 am

    I have a similar situation. What you need to do is create a model class that encompass both data types (extract overlapping properties). As far as the tree store it wont distinguish record types, but you can customize the look of the tree through icons to give each record type a distinct look. The data must be the same though, for example Name property must be the same for both record types.

    Since your JSON structure from server response is somewhat odd you have to parse it yourself and shape into the structure the treestore expects. Alternatively, you’ll need to get control of your server side implementation and tweak it there.

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

Sidebar

Related Questions

I have a large tree-like data structure of objects which behave mostly identical but
I have a data-structure (in plist) that looks something like this: What i have
I have a MySQL table with a tree data structure. The fields are _id
I have a tree walker like this: function: ^(FUNCTION_TOK fcname=IDENTIFIER param=functionParameters*){ a_param_arrayList.add(param); } ;
i'm working on a app where i have nested tree structure i.e. as below
I am looking for a good Tree data structure class. I have come across
Let's say I have a binary tree data structure defined as follows type 'a
I have a pretty large tree data structure that will get updated (nodes removed
In flex 3 I have a hierarchical data structure. I would like to display
I have a tree data structure that is L levels deep each node has

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.