I don't see where you are defining any component with an id or 'tpnOrto'. Also 
when trying to retrieve nodes, it is better to use one of the node retrival 
methods rather than Ext.getCmp. I would suggest using either 
Ext.TreePanel.getNodeById, Ext.Node.findChild, or Ext.Node.findChildBy

Hope that helps.

Matt Priour
Kestrel Computer Consulting


From: Vidal, Antoni 
Sent: Monday, April 11, 2011 6:31 AM
To: [email protected] 
Subject: [Users] How to get node from asynctreenode


Hello list,

 

I would like to get a node from asynctreenode but I only get "undefined" and I 
can't use disable() function.

 

My code:

 

....

},{

    "nodeType": "gx_layer",

    "id": "toponimOrto",

    "layer": "topoorto",

    "text": "Toponimy"

},{

 

....

var foo = Ext.getCmp('tpnOrto');

console.info(foo);

 

Any suggestion?

 

Thank's in advance.

 

Antoni Vidal

Unitat d'Aplicacions SIG-WEB
Institut Cartogràfic de Catalunya
Parc de Montjuïc, E-08038 Barcelona
Tel. (+34) 93 567 15 00 (ext. 3228)
www.icc.cat

 



--------------------------------------------------------------------------------


_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to