<?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: dropdownlist in dojo? in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/dropdownlist-in-dojo/m-p/783941#M2965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Nov 2015 00:22:21 GMT</pubDate>
    <dc:creator>LefterisKoumis</dc:creator>
    <dc:date>2015-11-11T00:22:21Z</dc:date>
    <item>
      <title>dropdownlist in dojo?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/dropdownlist-in-dojo/m-p/783937#M2961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know that the dropdownlist in dojo has been depreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In flex, once a dropdownlist was clicked on, code could check if certain criteria were met and if not, the value of the list would not change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to implement similar functionality with dojo/select however, the absence of the "break" to exit a function in dojo, makes this more complex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In dojo, once you click on the select list. it allows the user to change its value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A solution is to store the current value of the select list, and if criteria are not met, then revert the select list to its original value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other more simple solutions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 16:56:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/dropdownlist-in-dojo/m-p/783937#M2961</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2015-11-10T16:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: dropdownlist in dojo?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/dropdownlist-in-dojo/m-p/783938#M2962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Here is a fiddle that demos how to check the selects value and prevent it from being selected if it meets a certain value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://jsfiddle.net/rscheitlin/1ws1p0g9/3/" title="https://jsfiddle.net/rscheitlin/1ws1p0g9/3/"&gt;get previous value of dijit - JSFiddle&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 18:36:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/dropdownlist-in-dojo/m-p/783938#M2962</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-10T18:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: dropdownlist in dojo?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/dropdownlist-in-dojo/m-p/783939#M2963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to work with it. I actually try to compare the values of two select objects to ensure that no identical values are selected. Both select objects carry the same options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 22:15:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/dropdownlist-in-dojo/m-p/783939#M2963</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2015-11-10T22:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: dropdownlist in dojo?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/dropdownlist-in-dojo/m-p/783940#M2964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; OK in that case then here is a updated fiddle that shows that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://jsfiddle.net/rscheitlin/1ws1p0g9/5/" title="https://jsfiddle.net/rscheitlin/1ws1p0g9/5/"&gt;get previous value of dijit - JSFiddle&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 23:31:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/dropdownlist-in-dojo/m-p/783940#M2964</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-10T23:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: dropdownlist in dojo?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/dropdownlist-in-dojo/m-p/783941#M2965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2015 00:22:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/dropdownlist-in-dojo/m-p/783941#M2965</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2015-11-11T00:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: dropdownlist in dojo?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/dropdownlist-in-dojo/m-p/783942#M2966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using this approach to create custom repopulating dropdowns in my Query widget. When the watch handler is triggered, a new paramsDijit is built using this.paramsDijit.build().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything is working fine, but I'm unable to figure out how to add the watch handler to the new paramsDijit after it is added to DOM. Also, will the watch handler be removed from the destroyed dropdown elements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd be grateful if anyone could point me in the right direction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 13:03:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/dropdownlist-in-dojo/m-p/783942#M2966</guid>
      <dc:creator>MihkelMänna</dc:creator>
      <dc:date>2015-11-12T13:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: dropdownlist in dojo?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/dropdownlist-in-dojo/m-p/783943#M2967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mihkel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The watch would have to applied to the select element inside your paramsDijit. As far as the watch being removed when the select element is destroyed, I think so.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 14:37:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/dropdownlist-in-dojo/m-p/783943#M2967</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-12T14:37:13Z</dc:date>
    </item>
  </channel>
</rss>

