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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:06:40+00:00 2026-06-04T10:06:40+00:00

I am trying to load data into an extjs 4 TreeStore but while appending

  • 0

I am trying to load data into an extjs 4 TreeStore but while appending node, I am getting node.updateInfo is not a function error.

My model classes are as follows :

Dimension.js

Ext.define('ilp.model.Dimension', {
    extend : 'Ext.data.Model',
    require : [
        'ilp.model.DimensionLevel'
    ],
    fields : [
        'actualName', 
        'displayName'
    ],
    hasMany : {model : 'ilp.model.DimensionLevel', name : 'dimensionLevels'}
});

DimensionLevel.js

Ext.define('ilp.model.DimensionLevel', {
    extend : 'Ext.data.Model',
    fields : [
        {name : 'name', type : 'string'},
        {name : 'totalTrainees', type : 'int'}
    ]
});

and tree store code is as follows :

Ext.define('ilp.store.DimensionTree', {
    extend : 'Ext.data.TreeStore',
    requires : [
        'ilp.model.Dimension',
        'ilp.model.DimensionLevel'
    ],
    model : 'ilp.model.Dimension',

    root: {
    name: 'Dimensions'
    },

    proxy: {
    type: 'ajax',
    url: 'http://localhost:8080/pentaho/content/cda/doQuery',
    reader: {
            type: 'pentahoReader',
        root: 'resultset'
    },
    extraParams: {
        path: 'RINXDashboards%2FCDAs%2FILP_Employee_Qeries.cda',
        dataAccessId:'Get_All_Levels_From_All_Dimensions',
        userid : 'joe',
        password : 'password'
    }
    },

    listeners: {
    append : function(parentNode, newNode, index, options) {
            if(newNode.get('text') != 'Root') {
        console.log('newNode text value = ' + newNode.get('text'));
        newNode.set('checked', null);
        newNode.set('expandable', true);
        if(Ext.ClassManager.getName(newNode) == "ilp.model.Dimension") {
            newNode.set('expanded', true);
        newNode.set('text', newNode.get('displayName'));
        if(newNode.dimensionLevels().getCount() > 0) {
            newNode.dimensionLevels().each(function(level) {
            newNode.appendChild(level);
        });
        } else {
        newNode.set('leaf', true);
              }
        }else if(Ext.ClassManager.getName(newNode) == "ilp.model.DimensionLevel") {
            newNode.set('leaf', true);
        newNode.set('text', newNode.get('name'));
        }
    }
      }
    }
});

I am getting above error on following line :
newNode.dimensionLevels().each(function(level) {

while debugging I have found that updateInfo() method of newNode is undefined.

Can anyone please tell me why this error is coming? I am totally clueless now !!!

  • 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-04T10:06:42+00:00Added an answer on June 4, 2026 at 10:06 am

    May this is caused by the bug EXTJSIV-6051

    see Sencha Forum for further infos

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

Sidebar

Related Questions

Session expires frequently in extjs load() function. When i'm trying to load data into
I am running into a permission error when trying to load data from a
I am trying to load a JSON string into an EXTJS grid. The error
I'm trying to load data dynamically into Highcharts but I'm having problems. I tried
I was trying to load a data file into mysql table using LOAD DATA
I am trying to load some XML data into C++ code (classes) using gsoap.
I'm trying to load and parse json data from an external source into a
I'm trying to load a model to add dirty data to the store, but
I'm trying to load a .json file with this line: $.getJSON('engines.json',{},function(data){ alert(data); }); If
Trying to load data into a drop down list when a user selects one

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.