<?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: WAB - Date range picker in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846289#M10421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rickey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The filterLayer = lLayer; set the local var of filterLayer to the current layer the widget is configuring and this var is used by the applyFilter function to set the definition for that layer based on the current filter settings. I would get the layer from the map based on the selected tab.&amp;nbsp; Something like this._viewerMap.getLayer(the layers name); maybe in a function like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; getCurrentSelectedFilterLayer: function(layerName){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return this._viewerMap.getLayer(layerName);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That way you can call it from the applyFilter function. Or even better use the function to set the filterLayer to the proper layer when the tab is changed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 10:23:06 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2021-12-12T10:23:06Z</dc:date>
    <item>
      <title>WAB - Date range picker</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846269#M10401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have a widget that allows you to pick a date range from a calender to limit features on the map? For example I want to have some crime data on a map and have the user select a date range to show on the map. It would also then be nice to make it work with a chart widget. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;P&gt;-Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 21:59:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846269#M10401</guid>
      <dc:creator>StanMcShinsky</dc:creator>
      <dc:date>2015-05-27T21:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - Date range picker</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846270#M10402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure you know about this but just in case: &lt;A href="http://doc.arcgis.com/en/web-appbuilder/create-apps/widget-time-slider.htm" title="http://doc.arcgis.com/en/web-appbuilder/create-apps/widget-time-slider.htm"&gt;Time Slider widget—Web AppBuilder for ArcGIS | ArcGIS&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not look here:&lt;A href="https://community.esri.com/thread/158023"&gt;Custom Floor switcher widget WAB&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I believe the code provided can do what you are looking for. I believe the right direction is &lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;DefinitionExpression. I am working on a widget for "filtering" multiple attributes on one layer. I am not very far yet though. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;Picking from a calendar should be an option though. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know about a chart though. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 22:03:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846270#M10402</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2015-05-27T22:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - Date range picker</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846271#M10403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rickey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah I am aware of the time slider, but it is not very user friendly when you try to pick out specific dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I like the idea of filtering through multiple attributes. That would be very helpful. Do you have a working demo of your floor switcher?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart would just be a bonus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 22:12:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846271#M10403</guid>
      <dc:creator>StanMcShinsky</dc:creator>
      <dc:date>2015-05-27T22:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - Date range picker</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846272#M10404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I sort of have one. I have a working version but data is confidential. I need to make another one (tomorrow) that I can show you. Right now it works on one attribute but I have the code ready for two or more. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 22:16:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846272#M10404</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2015-05-27T22:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - Date range picker</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846273#M10405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/16374"&gt;Stan McShinsky&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you go &lt;A href="http://gis.ashland.or.us/demo/" title="http://gis.ashland.or.us/demo/"&gt;ArcGIS Web Application&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Type in any organizational password and it should work. If it does not I will change the basemap. &lt;/P&gt;&lt;P&gt;It needs a lot of work and this is just a demo I came up with. I am working on a filter for crime data and will post that later today (I hope).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just open the widget to load the layer. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 14:36:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846273#M10405</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2015-05-28T14:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - Date range picker</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846274#M10406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow that is looking good. I am excited to see how it turns out.&lt;/P&gt;&lt;P&gt;-Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 15:08:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846274#M10406</guid>
      <dc:creator>StanMcShinsky</dc:creator>
      <dc:date>2015-05-28T15:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - Date range picker</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846275#M10407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any suggestions on look or functionality? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 15:10:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846275#M10407</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2015-05-28T15:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - Date range picker</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846276#M10408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the next draft of the widget:&lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.ashland.or.us/demo2/" title="http://gis.ashland.or.us/demo2/"&gt;demo2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The popup can now be configured, Multiple filters can be added easier, number of visible records displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I posted elsewhere my boss does not want me to spend my time writing the setting files for the widget. So it will take a while before it gets done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 18:21:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846276#M10408</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2015-06-02T18:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - Date range picker</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846277#M10409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/40178" target="_blank"&gt;Rickey Fite&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been looking at this for a little while and worked up some extra things for you. Hopefully this will help and get it moving along. There still are a few things that are quirky but not sure yet how to work around it. Like you have to select the&amp;nbsp; month drop down for it to run the query. Anyway here are the changes I made:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the index.html file in the &amp;lt;head&amp;gt; (this loads the jquery to the map)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: transparent; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 9pt; line-height: 12pt; white-space: pre;"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;!-- added this jquery for the date picker&amp;nbsp; --&amp;gt;
&amp;lt;link rel="stylesheet" href="https://community.esri.com//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"&amp;gt;
&amp;lt;script src="//code.jquery.com/jquery-1.10.2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the \widgets\LocalLayer_filter\widget.js right after the startup function is called.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;//--------date picker--------------------
var fromDate;
var toDate;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
$(function() {
$( "#from" ).datepicker({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // minDate: -90,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxDate: "+0D",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; defaultDate: "+1w",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; changeMonth: true,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; numberOfMonths: 2,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; onClose: function( selectedDate ) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $( "#to" ).datepicker( "option", "minDate", selectedDate );
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fromDate = selectedDate;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
});
$( "#to" ).datepicker({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxDate: "+0D",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; defaultDate: "+1w",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; changeMonth: true,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; numberOfMonths: 2,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; onClose: function( selectedDate ) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $( "#from" ).datepicker( "option", "maxDate", selectedDate );
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toDate = selectedDate;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
});
});
//------------end date picker---------------&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case 104:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;case "104":
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; defExp2 = "Date &amp;gt;='"+fromDate+"' AND Date &amp;lt;= '"+toDate+"'"; //changed this
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and lets not forget about the Widget.html file. A little better formatting and new fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;div&amp;gt;


&amp;lt;table style="width:100%"&amp;gt;
&amp;nbsp; &amp;lt;tr&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;label for="from"&amp;gt;From:&amp;lt;/label&amp;gt;&amp;lt;/td&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;input type="text" id="from" name="from"&amp;gt;&amp;lt;/td&amp;gt; 
&amp;nbsp; &amp;lt;/tr&amp;gt;
&amp;nbsp; &amp;lt;tr&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;label for="to"&amp;gt;To:&amp;lt;/label&amp;gt;&amp;lt;/td&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;input type="text" id="to" name="to"&amp;gt;&amp;lt;/td&amp;gt; 
&amp;nbsp; &amp;lt;/tr&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;label&amp;gt;Crime:&amp;lt;/label&amp;gt;&amp;lt;/td&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; &amp;lt;select id="s5" data-dojo-id="s5" data-dojo-attach-point="test" data-dojo-type="dijit/form/Select" data-dojo-props='name:"s5", onChange: myOnClick'&amp;gt;
&amp;nbsp; &amp;lt;option value="0" selected="selected"&amp;gt;Larceny/Theft&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;lt;option value="1"&amp;gt;Vehicle Theft&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;lt;option value="2"&amp;gt;Assult&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;lt;option value="6"&amp;gt;Other&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;lt;option value="7"&amp;gt;DUII&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;lt;option value="8"&amp;gt;Fraud&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;lt;option value="9"&amp;gt;Burglary&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;lt;option value="10"&amp;gt;Traffic Stop&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;lt;option value="" disabled="true"&amp;gt;----------&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;lt;option value="Clear"&amp;gt;All&amp;lt;/option&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/select&amp;gt;
&amp;nbsp; &amp;lt;/td&amp;gt; 
&amp;nbsp; &amp;lt;/tr&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;label&amp;gt;Month:&amp;lt;/label&amp;gt;&amp;lt;/td&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;
&amp;nbsp; &amp;lt;select id="s12" data-dojo-id="s12" data-dojo-attach-point="s12" data-dojo-type="dijit/form/Select" onclick="" data-dojo-props='name:"s12"'&amp;gt;
&amp;nbsp; &amp;lt;!-- &amp;lt;option value="103"&amp;gt;August&amp;lt;/option&amp;gt; --&amp;gt;
&amp;nbsp; &amp;lt;option value="104" selected="selected"&amp;gt;Date Range&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;lt;!-- &amp;lt;option value="105"&amp;gt;December&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;lt;option value="106"&amp;gt;January&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;lt;option value="" disabled="true"&amp;gt;----------&amp;lt;/option&amp;gt; --&amp;gt;
&amp;nbsp; &amp;lt;option value="Clear2"&amp;gt;All&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;lt;/select&amp;gt;
&amp;nbsp; &amp;lt;/td&amp;gt; 
&amp;nbsp; &amp;lt;/tr&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;label&amp;gt;Time&amp;lt;/label&amp;gt;&amp;lt;/td&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;
&amp;nbsp; &amp;lt;select id="s1" data-dojo-id="s12" data-dojo-attach-point="s1" data-dojo-type="dijit/form/Select" onclick="" data-dojo-props='name:"s1"'&amp;gt;
&amp;nbsp; &amp;lt;option value="010"&amp;gt;Day (6am-8pm)&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;lt;option value="011"&amp;gt;Commute(7-9am/5-7pm)&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;lt;option value="012"&amp;gt;Night (8pm-6am)&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;lt;option value="013"&amp;gt;Night Life (9pm-2am)&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;lt;option value="" disabled="true"&amp;gt;----------&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;lt;option value="Clear3" selected="selected"&amp;gt;All&amp;lt;/option&amp;gt;
&amp;nbsp; &amp;lt;/select&amp;gt;
&amp;nbsp; &amp;lt;/td&amp;gt; 
&amp;nbsp; &amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;
&amp;lt;/br&amp;gt;&amp;lt;/br&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/br&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/br&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/br&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt; &amp;lt;span id="featcount"&amp;gt; Loading...&amp;lt;/span&amp;gt;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;

&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;Here is the sample I based it from &lt;A href="http://jqueryui.com/datepicker/#date-range" title="http://jqueryui.com/datepicker/#date-range" rel="nofollow noopener noreferrer" target="_blank"&gt;http://jqueryui.com/datepicker/#date-range&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Here is the page to see more parameters to configure the datepicker &lt;A href="http://api.jqueryui.com/datepicker/" title="http://api.jqueryui.com/datepicker/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://api.jqueryui.com/datepicker/&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is at least a start. I am sure there must be a better way but it works. I really like the direction of the widget. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:23:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846277#M10409</guid>
      <dc:creator>StanMcShinsky</dc:creator>
      <dc:date>2021-12-12T10:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - Date range picker</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846278#M10410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/16374"&gt;Stan McShinsky&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You work wonders!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the next version: &lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.ashland.or.us/demo3/" title="http://gis.ashland.or.us/demo3/"&gt;Demo3&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas on a time selector?&lt;/P&gt;&lt;P&gt;I am having issues with time selections that go into a new day. Ex. 9pm-2am&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s. did you get a widget that works for you in your original question? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 14:13:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846278#M10410</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2015-06-04T14:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - Date range picker</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846279#M10411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really like the jquery date picker. It looks very slick!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 14:18:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846279#M10411</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-06-04T14:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - Date range picker</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846280#M10412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rickey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you wanting to pick the overnight times for a single night? Right now you have night time hours for the entire date range. This is a fun project for me to tinker with. Thanks for letting me be of assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I noticed on the popup the time in the date field is different from the time in the time field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 20:01:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846280#M10412</guid>
      <dc:creator>StanMcShinsky</dc:creator>
      <dc:date>2015-06-04T20:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - Date range picker</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846281#M10413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any input is welcome! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A way to select certain hrs of the day such as 2pm-4am but let the user decide.&lt;/P&gt;&lt;P&gt;I guess that would just be a time slider I just don't know how one would be able select overnight times. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had not noticed that there was a time next to the date. I will fix it. The Time in the time field is the right time. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 20:09:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846281#M10413</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2015-06-04T20:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - Date range picker</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846282#M10414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rickey,&lt;/P&gt;&lt;P&gt;I have been working on a time selector in conjunction with the date picker and it works kinda but not the way I like it so I am going to try something new.&lt;/P&gt;&lt;P&gt;-Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 21:41:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846282#M10414</guid>
      <dc:creator>StanMcShinsky</dc:creator>
      <dc:date>2015-06-04T21:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - Date range picker</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846283#M10415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Hope you don't mind so more assistance. Here is the widget.js cleaned and improved:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Filter applied at startup&lt;/LI&gt;&lt;LI&gt;Filter changes using the change event instead of the on click event&lt;/LI&gt;&lt;LI&gt;Filter is applied when to and from date are chosen&lt;/LI&gt;&lt;LI&gt;Date portion is not applied if there is not a to and a from date&lt;/LI&gt;&lt;LI&gt;Unused requires removed&lt;/LI&gt;&lt;LI&gt;Event listeners are only applied on init instead of each time the filter changes&lt;/LI&gt;&lt;LI&gt;Filter is applied to FeatureLayer type only (since the def filter is specific to the crimes layer).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The widget.html cleaned:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Removed all the ids and data-props from the selects&lt;/LI&gt;&lt;LI&gt;Added cellspacing to table&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 03:14:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846283#M10415</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-06-05T03:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - Date range picker</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846284#M10416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your input is always welcome! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 14:08:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846284#M10416</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2015-06-05T14:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - Date range picker</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846285#M10417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copied your code into this &lt;A href="http://gis.ashland.or.us/demo3/" title="http://gis.ashland.or.us/demo3/"&gt;demo3&lt;/A&gt;​ and the filter does not seem to work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The console log does not give any errors either. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 14:57:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846285#M10417</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2015-06-05T14:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - Date range picker</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846286#M10418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rickey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The filter is getting applied to the last layer in your json which is the rickey_firehydrant layer. I was kind of confused on how you intended this widget to work with multiple layers when your filter logic was very specific to one particular layer so I just remove the rickey_firehydrant layer from my test environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 15:17:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846286#M10418</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-06-05T15:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - Date range picker</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846287#M10419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see now, it is fixed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 15:24:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846287#M10419</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2015-06-05T15:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - Date range picker</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846288#M10420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;I am now trying to add another layer. Right now the plan is to use tabs to differentiate between the filtering process (I have the tabs set up). I cannot seem to find the part of the code that references the last layer in the json unless it is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; filterLayer = lLayer;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to change the lLayer to the title of the layer or another way to differentiate between the layers.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 20:53:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-date-range-picker/m-p/846288#M10420</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2015-06-05T20:53:04Z</dc:date>
    </item>
  </channel>
</rss>

