<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic setFocus? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/setfocus/m-p/70308#M1567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So, does anyone know why I am able to set focus to some TextInput boxes and not some others?&amp;nbsp; For instance, I am able to use setFocus() in the locate widget, but not in the printwidget or searchwidget.&amp;nbsp; Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jul 2010 17:59:46 GMT</pubDate>
    <dc:creator>JayGeisen</dc:creator>
    <dc:date>2010-07-16T17:59:46Z</dc:date>
    <item>
      <title>setFocus?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/setfocus/m-p/70308#M1567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So, does anyone know why I am able to set focus to some TextInput boxes and not some others?&amp;nbsp; For instance, I am able to use setFocus() in the locate widget, but not in the printwidget or searchwidget.&amp;nbsp; Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jul 2010 17:59:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/setfocus/m-p/70308#M1567</guid>
      <dc:creator>JayGeisen</dc:creator>
      <dc:date>2010-07-16T17:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: setFocus?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/setfocus/m-p/70309#M1568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try to use 'focusManager.setFocus()'&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jul 2010 23:12:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/setfocus/m-p/70309#M1568</guid>
      <dc:creator>ChenJuequan</dc:creator>
      <dc:date>2010-07-16T23:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: setFocus?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/setfocus/m-p/70310#M1569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chen,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&amp;nbsp; I've tried using focusManager as well, but that doesn't work either.&amp;nbsp; I don't understand why setFocus works on some widgets and not on others.&amp;nbsp; Also, it would be nice to have focus on whatever widget is open upon loading the application.&amp;nbsp; It seems this is even more difficult because you need to take focus from the application itself before you can assign it to any particular widget.&amp;nbsp; Any help anyone could give is appreciated.&amp;nbsp; I've been trying to figure this out for days now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 15:56:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/setfocus/m-p/70310#M1569</guid>
      <dc:creator>JayGeisen</dc:creator>
      <dc:date>2010-07-19T15:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: setFocus?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/setfocus/m-p/70311#M1570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Chen,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply.&amp;nbsp; I've tried using focusManager as well, but that doesn't work either.&amp;nbsp; I don't understand why setFocus works on some widgets and not on others.&amp;nbsp; Also, it would be nice to have focus on whatever widget is open upon loading the application.&amp;nbsp; It seems this is even more difficult because you need to take focus from the application itself before you can assign it to any particular widget.&amp;nbsp; Any help anyone could give is appreciated.&amp;nbsp; I've been trying to figure this out for days now.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jay&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Jay,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any luck with setting the focus.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to set the focus on the mx:TextInput of SearchWidget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Im able to do it for the widgetConfigLoaded event but when I try set focus using "focusManager.setFocus(txtSearch);" in widgetOpenHandler I get error #1009:Cannot access a property or method of a null object reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sree&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 16:34:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/setfocus/m-p/70311#M1570</guid>
      <dc:creator>SreeS</dc:creator>
      <dc:date>2010-10-25T16:34:45Z</dc:date>
    </item>
  </channel>
</rss>

