<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>your right...I meant the treeconfig not the layer config!</span></div><div><span><br></span></div><div><span>cheers,</span></div><div><span>Rob</span></div><div><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> truongxuan quang <truongxuanquang@yahoo.com><br> <b><span style="font-weight: bold;">An:</span></b> Robert Buckley <robertdbuckley@yahoo.com> <br><b><span style="font-weight: bold;">CC:</span></b> Users <users@geoext.org> <br> <b><span style="font-weight: bold;">Gesendet:</span></b> 10:50 Freitag, 16.März 2012<br> <b><span style="font-weight: bold;">Betreff:</span></b>
Re: [Users] WG: How to programmatically change the gx_overlayrcontainers text string in the tree:SOLVED<br> </font> </div> <br><div id="yiv170355732"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 12pt; font-family: arial, helvetica, sans-serif; "><div style="font-size: 12pt; font-family: arial, helvetica, sans-serif; "><span>Hi</span></div><div style="font-size: 12pt; font-family: arial, helvetica, sans-serif; "><span>I think it should be </span></div><div style="font-size: 12pt; font-family: arial, helvetica, sans-serif; "><span><br></span></div><div><span><div>var treeConfig1 =[</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">        </span>{</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">                </span>nodeType: "gx_baselayercontainer",</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">                </span>text: "Base Layers",</div><div><span
class="yiv170355732Apple-tab-span" style="white-space:pre;">                </span>expanded: true,</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">                </span>leaf: false,</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">                </span>loader: {</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">                        </span>param: "LAYERS"</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">                        </span>}</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">        </span>},</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">        </span>{ </div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">                </span>text: "Search Functionality",</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">                </span>expanded: false,</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">                </span>children:
[</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">                </span> {</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">                </span> nodeType: 'gx_layer',</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">                        </span>
text: 'List of Station',</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">                </span> layer: Layer_Station,</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">        </span> <span class="yiv170355732Apple-tab-span" style="white-space:pre;">        </span> icon: '../images/draw_polygon.png',</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">                                        </span> qtip: "Map of Stations"</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">                </span> },</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">                                </span>.............etc</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">                                </span> ]</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">        </span>},</div><div><span
class="yiv170355732Apple-tab-span" style="white-space:pre;">        </span>{ </div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">                </span>text: "Map",</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">                </span>expanded: false,</div><div><span class="yiv170355732Apple-tab-span" style="white-space:pre;">                </span>children: [ etc.....</div><div><br></div><div><br></div></span></div><div style="font-size: 12pt; font-family: arial, helvetica, sans-serif; "><br></div> <div style="font-size: 12pt; font-family: arial, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Robert Buckley <robertdbuckley@yahoo.com><br> <b><span style="font-weight:bold;">To:</span></b> "users@geoext.org" <users@geoext.org> <br> <b><span style="font-weight:bold;">Sent:</span></b>
Friday, March 16, 2012 10:08 AM<br> <b><span style="font-weight:bold;">Subject:</span></b> [Users] WG: How to
programmatically change the gx_overlayrcontainers text string in the tree:SOLVED<br> </font> </div> <br>
<div id="yiv170355732"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 10pt; font-family: arial, helvetica, sans-serif; "><div><br></div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><div style="font-size: 12pt; font-family: times, serif; "><div dir="ltr"><font size="2" face="Arial"> <b><span style="font-weight:bold;">Betreff:</span></b> Re: [Users] How to programmatically change the gx_overlayrcontainers text string in the tree:SOLVED<br> </font> </div> <br><div id="yiv170355732"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 10pt; font-family: arial, helvetica, sans-serif; "><div><span>It was a stupid question....I just had to use </span></div><div><span><br></span></div><div><span>text: "string"</span></div><div><span><br></span></div><div>...in the layer
config</div><div><br></div><div>yours,</div><div>Rob</div><div><span><br></span></div><div><span><br></span></div><div><br></div> <div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 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> 14:30 Donnerstag, 15.März 2012<br> <b><span style="font-weight:bold;">Betreff:</span></b> [Users] How to programmatically change the gx_overlayrcontainers text string in the tree<br> </font> </div> <br><div id="yiv170355732"><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; ">I´ver tried this...</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; "><br></div><div><div><font face="arial, helvetica, sans-serif" size="2">var treeConfig = [{</font></div><div><font face="arial, helvetica, sans-serif" size="2"> nodeType: "gx_baselayercontainer",</font></div><div><font face="arial, helvetica, sans-serif" size="2"> id: "gx_baselayercontainer",</font></div><div><font face="arial,
helvetica, sans-serif" size="2"> hidden:true</font></div><div><font face="arial, helvetica, sans-serif" size="2"> }, {....etc.etc</font></div><div><font face="arial,
helvetica, sans-serif" size="2"><br></font></div><div><font face="arial, helvetica, sans-serif" size="2">Ext.get('gx_baselayercontainer').set({text: 'test'}); <br></font></div><div><font face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font face="arial, helvetica, sans-serif" size="2">This doesn´t work....</font><span style="color: rgb(255, 0, 0); font-size: 12px; line-height: 12px; white-space: pre-wrap; font-family: Consolas, monospace; ">c</span><span style="color: rgb(255, 0, 0); font-size: 12px; line-height: 12px; white-space: pre-wrap; font-family: Consolas, monospace; ">annot call method 'set' of null???</span></div><div><span style="color: rgb(255, 0, 0); font-size: 12px; line-height: 12px; white-space: pre-wrap; font-family: Consolas, monospace; "><br></span></div><div><span style="font-size: 12px; line-height: 12px; white-space: pre-wrap; font-family: Consolas, monospace; ">how can I set the text
then?</span></div><div><span style="font-size: 12px; line-height: 12px; white-space: pre-wrap; font-family: Consolas, monospace; "><br></span></div><div><span style="font-size: 12px; line-height: 12px; white-space: pre-wrap; font-family: Consolas, monospace; "><br></span></div><div><span style="font-size: 12px; line-height: 12px; white-space: pre-wrap; font-family: Consolas, monospace; ">yours with thanks,</span></div><div><span style="font-size: 12px; line-height: 12px; white-space: pre-wrap; font-family: Consolas, monospace; "><br></span></div><div><span style="font-size: 12px; line-height: 12px; white-space: pre-wrap; font-family: Consolas, monospace; ">Rob</span></div><div><font face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font face="arial, helvetica, sans-serif" size="2"><br></font></div></div><div><font face="arial, helvetica, sans-serif"
size="2"><br></font></div><div><font face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font face="arial, helvetica, sans-serif" size="2"><br></font></div></div></div></div><br>_______________________________________________<br>Users mailing list<br><a rel="nofollow" ymailto="mailto:Users@geoext.org" target="_blank" href="mailto:Users@geoext.org">Users@geoext.org</a><br>http://www.geoext.org/cgi-bin/mailman/listinfo/users<br><br><br> </div> </div> </div></div></div><br><br> </div> </div> </div></div></div><br>_______________________________________________<br>Users mailing list<br><a rel="nofollow" ymailto="mailto:Users@geoext.org" target="_blank" href="mailto:Users@geoext.org">Users@geoext.org</a><br><a rel="nofollow" target="_blank" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br><br><br> </div> </div> </div></div></div><br><br> </div> </div>
</div></body></html>