RandellB
3 Jan 2012, 11:20 AM
I am trying to create a tree that loads data dynamically via proxy from a Java servlet. When a tree node is expanded I need to pass data from multiple columns (in blue below) in the tree store's model back to the servrlet in the form of HTTP request parameters (similar to how the standard "node" parameter is passed). This data is potentially different for each node in the tree so a blanket "extraParams" definition does not seem to work?
Ext.define('TreeModel',
{
extend: 'Ext.data.Model',
fields: [
{ name: 'id', type: 'string' },
{ name: 'text', type: 'string' },
{ name: 'currId', type: 'string' },
{ name: 'currType', type: 'string' },
{ name: 'parId', type: 'string' },
{ name: 'treeId', type: 'string' },
{ name: 'params', type: 'string' }
]
});
Thanks in advance for the help.
Randell
Ext.define('TreeModel',
{
extend: 'Ext.data.Model',
fields: [
{ name: 'id', type: 'string' },
{ name: 'text', type: 'string' },
{ name: 'currId', type: 'string' },
{ name: 'currType', type: 'string' },
{ name: 'parId', type: 'string' },
{ name: 'treeId', type: 'string' },
{ name: 'params', type: 'string' }
]
});
Thanks in advance for the help.
Randell