<?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: searching a date range in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/searching-a-date-range/m-p/578320#M16554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: rscheitlin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; OK than try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;expression alias="Date Search" &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; textsearchlabel="Search by Typing Full SQL&amp;nbsp; example:[ SALE_DATE &amp;amp;gt;= '04/03/2011' AND SALE_DATE &amp;amp;lt;= '07/01/2011'&amp;nbsp; ]..."&amp;gt;[value]&amp;lt;/expression&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Feb 2012 18:01:33 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2012-02-22T18:01:33Z</dc:date>
    <item>
      <title>searching a date range</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/searching-a-date-range/m-p/578315#M16549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the enhance serch widget from Robert.&amp;nbsp; Outstanding!!&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to include a search by range - such as&amp;nbsp; a date or price range?&amp;nbsp; Such are sales date for parcels.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect that this may be something that needs to be edited in the source code, but thought that there may be a query statement that could also be used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 14:32:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/searching-a-date-range/m-p/578315#M16549</guid>
      <dc:creator>JamesArmstrong</dc:creator>
      <dc:date>2012-02-22T14:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: searching a date range</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/searching-a-date-range/m-p/578316#M16550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: rscheitlin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; It can be done in a Query but..... As multiple field queries are not supported in the eSearch expressions in the same way that others are you have to do a workaround.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Query would look like this assuming you are using SDE and not a file GDB:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;SALE_DATE &amp;gt;= '2010-03-03 00:00:00' AND SALE_DATE &amp;lt;= '2012-03-03 00:00:00'&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You would have to manually type this in the TextBox of the eSearchWidget when you choose this expression in the dropdown:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;expression alias="Open SQL" textsearchlabel="Search by Typing Full SQL example:[ SALE_DATE &amp;gt;= '2010-03-03 00:00:00' AND SALE_DATE &amp;lt;= '2012-03-03 00:00:00' ]..."&amp;gt;&lt;SPAN style="color:#ff0000;"&gt;[value]&lt;/SPAN&gt;&amp;lt;/expression&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 15:09:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/searching-a-date-range/m-p/578316#M16550</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-02-22T15:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: searching a date range</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/searching-a-date-range/m-p/578317#M16551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the actual query work great, though one issue.&amp;nbsp; This is the code I put into the xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;expression alias="Date Search"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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; textsearchlabel="Search by Typing Full SQL example:[ SALE_DATE &amp;gt;= '04/03/2011' AND SALE_DATE &amp;lt;= '07/01/2011' ]..."&amp;gt;[value]&amp;lt;/expression&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;as you can see I did change the data format a bit, but it does seem to work (I am using a SDE database) when I use the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;SALE_DATE &amp;gt;= '04/03/2011' AND SALE_DATE &amp;lt;= '07/01/2011'&lt;/SPAN&gt;&lt;SPAN&gt; in the entry box.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This issue is that there is a parseing error if the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;SALE_DATE &amp;gt;= '04/03/2011' AND SALE_DATE &amp;lt;= '07/01/2011' &lt;/SPAN&gt;&lt;SPAN&gt; is left in as the example string.&amp;nbsp; If part of it is removed, there is no problem.&amp;nbsp; I thought it may have something to do with the quotation marks around the date, but when removed, the same parsing erro happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JAMES&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 16:36:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/searching-a-date-range/m-p/578317#M16551</guid>
      <dc:creator>JamesArmstrong</dc:creator>
      <dc:date>2012-02-22T16:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: searching a date range</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/searching-a-date-range/m-p/578318#M16552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: rscheitlin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Are you using version 2.5.1.3? If not that that is the problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 16:40:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/searching-a-date-range/m-p/578318#M16552</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-02-22T16:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: searching a date range</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/searching-a-date-range/m-p/578319#M16553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes&amp;nbsp; I am using the lates version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I now dont think the issue is with the single quottons marks.&amp;nbsp; Instead, it seems the issue centers on the &amp;lt;= sign.&amp;nbsp; I have removed it, or used just the = sign and even the &amp;gt; and the parsing error is not thrown.&amp;nbsp; With that sign (or even =&amp;lt;) the parsing error is thrown.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 17:47:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/searching-a-date-range/m-p/578319#M16553</guid>
      <dc:creator>JamesArmstrong</dc:creator>
      <dc:date>2012-02-22T17:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: searching a date range</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/searching-a-date-range/m-p/578320#M16554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: rscheitlin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; OK than try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;expression alias="Date Search" &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; textsearchlabel="Search by Typing Full SQL&amp;nbsp; example:[ SALE_DATE &amp;amp;gt;= '04/03/2011' AND SALE_DATE &amp;amp;lt;= '07/01/2011'&amp;nbsp; ]..."&amp;gt;[value]&amp;lt;/expression&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 18:01:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/searching-a-date-range/m-p/578320#M16554</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-02-22T18:01:33Z</dc:date>
    </item>
  </channel>
</rss>

