<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span>Instead I just programmatically selected the node which is checked </span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span><br></span></div><div><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span class="Apple-tab-span" style="white-space:pre">        </span></span><span style="font-size: 13px;">activeNode.select.defer(100, node);</span></div><div><span style="font-size: 13px;"><br></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span>and used...</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span><span class="Apple-tab-span" style="white-space:pre">        </span></span></div><div><span class="Apple-tab-span"
style="font-family: arial, helvetica, sans-serif; font-size: 10pt; white-space: pre; ">        </span> <span style="font-size: 13px;">var tree = Ext.getCmp("treePanel"); </span></div><div><span style="font-size: 13px;"><span class="Apple-tab-span" style="white-space:pre">        </span> var selectedNode = tree.getSelectionModel().getSelectedNode();</span></div><div><span style="font-size: 13px;"><br></span></div><div><span style="font-size: 13px;">..to read the name of the selected node.</span></div><div><span style="font-size: 13px;"><br></span></div><div><span style="font-size: 13px;">If anyone knows how to miss out the second step and directly find the checked node, I´d be curious as to how it works.</span></div><div><span style="font-size: 13px;"><br></span></div><div><span style="font-size: 13px;">yours,</span></div><div><span style="font-size: 13px;"><br></span></div><div><span style="font-size: 13px;">Rob</span></div><div style="font-family:
arial, helvetica, sans-serif; font-size: 10pt; "><br></div> <div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">Von:</span></b> Robert Buckley <robertdbuckley@yahoo.com><br> <b><span style="font-weight: bold;">An:</span></b> "users@geoext.org" <users@geoext.org> <br> <b><span style="font-weight: bold;">Gesendet:</span></b> 10:51 Dienstag, 13.März 2012<br> <b><span style="font-weight: bold;">Betreff:</span></b> [Users] Find name of the checked node<br> </font> </div> <br><div id="yiv510159781"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 10pt; font-family: arial, helvetica, sans-serif; "><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; ">Hi,</div><div style="font-size:
10pt; font-family: arial, helvetica, sans-serif; "><br></div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; ">I am stuck trying to modify my WMSgetFeatureinfo popup.</div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; ">I´m using the treenode radio plugin to construct a layer tree. When the node is checked the attributes are read into the popup, but the title is feature.id. Instead I would like to have the layer name as the title so I have to iterate through the tree and find the node which is currently checked...</div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><br></div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; ">my feeble
attempt doesn´t work...</div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><br></div><div><div><font face="arial, helvetica, sans-serif" size="2">//Loop through each Group of Layers</font></div><div><font face="arial, helvetica, sans-serif" size="2"><span class="yiv510159781Apple-tab-span" style="white-space:pre;">                                                                </span>for (var i=0; i<=(layerRoot.childNodes.length -1); i++)</font></div><div><font face="arial, helvetica, sans-serif" size="2"><span class="yiv510159781Apple-tab-span" style="white-space:pre;">                                                                </span>{</font></div><div><font face="arial, helvetica, sans-serif" size="2"><span class="yiv510159781Apple-tab-span" style="white-space:pre;">                                                        </span>//Check for base layer, if so do this differently</font></div><div><font face="arial, helvetica, sans-serif" size="2"><span class="yiv510159781Apple-tab-span" style="white-space:pre;">                                                                </span>if (layerRoot.childNodes[i].checked ==
true)</font></div><div><font face="arial, helvetica,
sans-serif" size="2"><span class="yiv510159781Apple-tab-span" style="white-space:pre;">                                                                </span>{alert("test");</font></div><div><font face="arial, helvetica, sans-serif" size="2"><span class="yiv510159781Apple-tab-span" style="white-space:pre;">                                                                        </span>}</font></div><div><font face="arial, helvetica, sans-serif" size="2"><span class="yiv510159781Apple-tab-span" style="white-space:pre;">                                                        </span> }</font></div><div><font face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font face="arial, helvetica, sans-serif" size="2">can anyone offer a solution?</font></div><div><font face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font face="arial, helvetica, sans-serif" size="2">cheers,</font></div><div><font face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font face="arial, helvetica, sans-serif"
size="2">Rob</font></div></div></div></div></div><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@geoext.org" href="mailto:Users@geoext.org">Users@geoext.org</a><br><a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br><br><br> </div> </div> </div></body></html>