<?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 Re: combobox default value in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72796#M2513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Faten,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Before you made the change I suggested did the first combobox have the values still when the widget was reopened and the issue was only that the default value was not selected (did the combobox still have all the values)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jan 2014 12:27:18 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2014-01-21T12:27:18Z</dc:date>
    <item>
      <title>combobox default value</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72791#M2508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a widget with three combo boxes. i need to keep a specific value as a default value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i added the following two line of code in fillComboBoxGovs() function&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;cbGovName.selectedIndex=1; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fillComboBoxDist();&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;i attached the code of the widget. its should be a little update but i'm new in flex and stuck with this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 11:15:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72791#M2508</guid>
      <dc:creator>fatenodeh</dc:creator>
      <dc:date>2014-01-20T11:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: combobox default value</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72792#M2509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;faten,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Can you explain a little more? What is and is not occurring?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 13:15:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72792#M2509</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-01-20T13:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: combobox default value</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72793#M2510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry i forget to explan that the widget work correctly for the first time but if i lunch the widget again the first combobox empty. I want to keep the default value in the first combo box.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 14:37:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72793#M2510</guid>
      <dc:creator>fatenodeh</dc:creator>
      <dc:date>2014-01-20T14:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: combobox default value</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72794#M2511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Faten,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; That makes a lot more sense then. OK all you need to do is call fillComboBoxGovs() from the widgetOpenedHandler function then.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to&lt;/SPAN&gt;&lt;STRONG&gt; click the Mark as answer check&lt;/STRONG&gt;&lt;SPAN&gt; on this post and to &lt;/SPAN&gt;&lt;STRONG&gt;click the top arrow (promote)&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Follow these steps&lt;/STRONG&gt;&lt;SPAN&gt; as shown in the below graphic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://gis.calhouncounty.org/FlexViewer3.3/Answer.jpg"&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer3.3/Answer.jpg" /&gt;&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 20:58:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72794#M2511</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-01-20T20:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: combobox default value</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72795#M2512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you. I called fillComboBoxGovs() function and the default value displayed. but once i click on widget seems setBusyCursor() function fired and widget hang-up. ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 12:16:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72795#M2512</guid>
      <dc:creator>fatenodeh</dc:creator>
      <dc:date>2014-01-21T12:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: combobox default value</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72796#M2513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Faten,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Before you made the change I suggested did the first combobox have the values still when the widget was reopened and the issue was only that the default value was not selected (did the combobox still have all the values)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 12:27:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72796#M2513</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-01-21T12:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: combobox default value</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72797#M2514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes before and after your suggestion the combobox has values. After the update you suggest the default value displayed but widget seems hang-up the first time i open it. And work correctly the second time i reopen it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 19:04:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72797#M2514</guid>
      <dc:creator>fatenodeh</dc:creator>
      <dc:date>2014-01-21T19:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: combobox default value</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72798#M2515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes before and after your suggestion the combobox has values. After the update you suggest the default value displayed but widget seems hang-up the first time i open it. And work correctly if i open another widget before reopen it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 19:39:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72798#M2515</guid>
      <dc:creator>fatenodeh</dc:creator>
      <dc:date>2014-01-21T19:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: combobox default value</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72799#M2516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;faten,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; If the combobox is still populated then instead of running the fillComboBoxGovs() again, try just setting the selectedIndex on the Combobox instead, on the widget open function.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 19:40:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72799#M2516</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-01-21T19:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: combobox default value</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72800#M2517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This solved my priblem thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jan 2014 06:09:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/combobox-default-value/m-p/72800#M2517</guid>
      <dc:creator>fatenodeh</dc:creator>
      <dc:date>2014-01-25T06:09:08Z</dc:date>
    </item>
  </channel>
</rss>

