You should simply be able to call setDisabled on your action and expect any button created linked to this action to be disabled.<br><br>action.setDisabled(true);<br><br><div class="gmail_quote">On Mon, Nov 5, 2012 at 10:36 AM, Robert Buckley <span dir="ltr">&lt;<a href="mailto:robertdbuckley@yahoo.com" target="_blank">robertdbuckley@yahoo.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:10pt;font-family:arial,helvetica,sans-serif"><div style="font-family:arial,helvetica,sans-serif;font-size:10pt">

Hi,</div><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><br></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:arial,helvetica,sans-serif">I have an WMSGetFeatureinfo button defined within an action as follows in Extjs 3.4</div>

<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:arial,helvetica,sans-serif"><br></div><div style="background-color:transparent"><div style="background-color:transparent"><font face="arial, helvetica, sans-serif">    action = new GeoExt.Action({</font></div>

<div style="background-color:transparent"><font face="arial, helvetica, sans-serif">        id:&quot;wms_info_btn&quot;,</font></div><div style="background-color:transparent"><font face="arial, helvetica, sans-serif">        text: &quot;&quot;,</font></div>

<div style="background-color:transparent"><font face="arial, helvetica, sans-serif">        tooltip: &quot;Features Abfragen&quot;,</font></div><div style="background-color:transparent"><font face="arial, helvetica, sans-serif">        toggleGroup: &#39;mapTools&#39;,</font></div>

<div style="background-color:transparent"><font face="arial, helvetica, sans-serif">        icon: &#39;images_big/10_identify.png&#39;,</font></div><div style="background-color:transparent"><font face="arial, helvetica, sans-serif">        hidden:false,</font></div>

<div style="background-color:transparent"><font face="arial, helvetica, sans-serif"> 
       control: featureInfo,     </font></div><div style="background-color:transparent"><font face="arial, helvetica, sans-serif">        map: map</font></div><div style="background-color:transparent"><font face="arial, helvetica, sans-serif">    });</font></div>

<div style="background-color:transparent"><font face="arial, helvetica, sans-serif">    actions[&quot;Select&quot;] = action;</font></div><div style="background-color:transparent"><font face="arial, helvetica, sans-serif">    toolbarItems.push(action);</font></div>

<div style="background-color:transparent"><font face="arial, helvetica, sans-serif"> </font></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:arial,helvetica,sans-serif"><font face="arial, helvetica, sans-serif"><br>

</font></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:arial,helvetica,sans-serif"><font face="arial, helvetica, sans-serif">This work fine....but if the layer node - &quot;activemode&quot; - isn´t checked, the busyMask runs indefinately. I am trying to identify if the node is checked or not. I can do this with the following code.</font></div>

<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:arial,helvetica,sans-serif"><font face="arial, helvetica, sans-serif"><br></font></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:arial,helvetica,sans-serif">

<font face="arial, helvetica, sans-serif"><br></font></div><div style="background-color:transparent"><font face="arial, helvetica, sans-serif">   if (typeof(activenode) == &quot;undefined&quot;){</font></div><div style="background-color:transparent">

<font face="arial, helvetica, sans-serif">//                </font><span style="background-color:transparent;font-family:arial,helvetica,sans-serif;font-size:small">  Ext.get(&#39;</span><span style="background-color:transparent;font-family:arial,helvetica,sans-serif;font-size:small">wms_info_btn</span><span style="background-color:transparent;font-family:arial,helvetica,sans-serif;font-size:13px">&#39;).dom.disabled = true;</span></div>

<div style="background-color:transparent"><font face="arial, helvetica, sans-serif">               }</font></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:arial,helvetica,sans-serif">

<font face="arial,
 helvetica, sans-serif"><br></font></div><div style="font-style:normal;background-color:transparent;font-family:arial,helvetica,sans-serif"><font>but I can&#39;t reference the button in the toolbar to disable it .....I guess because it is an action.</font></div>

<div style="font-size:13px;font-style:normal;background-color:transparent;font-family:arial,helvetica,sans-serif"><font><br></font></div><div style="font-size:13px;font-style:normal;background-color:transparent;font-family:arial,helvetica,sans-serif">

<font><br></font></div><div style="font-size:13px;font-style:normal;background-color:transparent;font-family:arial,helvetica,sans-serif"><font>Can anyone help me get a reference to the actual button?</font></div><div style="font-size:13px;font-style:normal;background-color:transparent;font-family:arial,helvetica,sans-serif">

<font><br></font></div><div style="font-size:13px;font-style:normal;background-color:transparent;font-family:arial,helvetica,sans-serif"><font>yours,</font></div><div style="font-size:13px;font-style:normal;background-color:transparent;font-family:arial,helvetica,sans-serif">

<font><br></font></div><div style="font-size:13px;font-style:normal;background-color:transparent;font-family:arial,helvetica,sans-serif"><font>Robert</font></div><div style="font-size:13px;font-style:normal;background-color:transparent;font-family:arial,helvetica,sans-serif">

<font><br></font></div><div style="font-size:13px;font-style:normal;background-color:transparent;font-family:arial,helvetica,sans-serif"><font><br></font></div><div style="font-size:13px;font-style:normal;background-color:transparent;font-family:arial,helvetica,sans-serif">

<br></div></div></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a 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></blockquote></div><br><br clear="all"><br>-- <br>Pierre GIRAUD<br>Géomaticien, Analyste<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex <br><br>Tel : 00 33 4 79 44 44 93<br>

Mail : <a href="mailto:pierre.giraud@camptocamp.com">pierre.giraud@camptocamp.com</a><br><a href="http://www.camptocamp.com">http://www.camptocamp.com</a>  <br>