<?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: Enhanced search widget sql queries in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/enhanced-search-widget-sql-queries/m-p/567220#M16225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Lisa,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Yep, that is the best way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Feb 2011 18:12:52 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2011-02-04T18:12:52Z</dc:date>
    <item>
      <title>Enhanced search widget sql queries</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/enhanced-search-widget-sql-queries/m-p/567215#M16220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am working with the enhanced search widget, compiled version 2.2.6 in FlexViewer 2.1 I am having trouble with entering SQL query statements in the text box. If anybody is willing to help me trouble shoot I would sure appreciate it. I had originally been using 2.2.4, but upgraded for good measure. The same issues exist.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://gis-web.heritage.unm.edu/gpd/"&gt;http://gis-web.heritage.unm.edu/gpd/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been testing with the layer Field Validation and the field FieldYr. If I enter just one year, I get the appropriate search results. When I enter a SQL statement, I get more data than what I asked for. For exmple: FieldYr &amp;amp;gt:= 2003 AND FieldYr &amp;amp;lt:= 2005 returns points with FieldYr ranging from 1978-2010 as does the statement: FieldYr &amp;amp;gt: 200. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Putting in an OR query, FieldYr = 1978 OR FieldYr = 2003 generates an "Unable to complete operation" error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An additional problem is that I know my escaped characters are supposed to use a ; however using a ; generates an "unable to complete operation" error. Using a : at least does a search, but returns the wrong results. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached a .txt version of my search widget xml configuration file here. Thanks for any idea on resolving these issues. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lisa Arnold&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;University of New Mexico&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 22:09:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/enhanced-search-widget-sql-queries/m-p/567215#M16220</guid>
      <dc:creator>LisaArnold</dc:creator>
      <dc:date>2011-02-03T22:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Enhanced search widget sql queries</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/enhanced-search-widget-sql-queries/m-p/567216#M16221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Lisa,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The User Interface has no way currently to handle querying based on two different values like you are attempting. There is a simple no code change work around for what you are trying though:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;expressions&amp;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;lt;expression alias="PhotoYr" textsearchlabel="Search Photo Year [ Example: 2003 ]:"&amp;gt;PhotoYr = [value]&amp;lt;/expression&amp;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;lt;expression alias="FieldYr" textsearchlabel="Search Field Year [ Example: 2003 ]:"&amp;gt;FieldYr = [value]&amp;lt;/expression&amp;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;lt;expression alias="FieldYr between 2003 and 2005 Range" textsearchlabel=" Type: FieldYr &amp;amp;gt;= 2003 AND FieldYr &amp;amp;lt;= 2005"&amp;gt;[value]&amp;lt;/expression&amp;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;lt;expression alias="FieldYr 1978 or 2003" textsearchlabel="Type: FieldYr = 1978 OR FieldYr = 2003"&amp;gt;[value]&amp;lt;/expression&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/expressions&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Notice the last two expressions... If the user follows the prompt then the query will succeed. Note the &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;amp;gt;&lt;/PRE&gt;&lt;SPAN&gt; can be entered as a normal &amp;gt; symbol by the user into the input box.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if any of this is unclear.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:26:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/enhanced-search-widget-sql-queries/m-p/567216#M16221</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T00:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Enhanced search widget sql queries</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/enhanced-search-widget-sql-queries/m-p/567217#M16222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah ok I think I understand now. So these two lines: &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;expression alias="FieldYr between 2003 and 2005 Range" textsearchlabel=" Type: FieldYr &amp;amp;gt;= 2003 AND FieldYr &amp;amp;lt;= 2005"&amp;gt;[value]&amp;lt;/expression&amp;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;lt;expression alias="FieldYr 1978 or 2003" textsearchlabel="Type: FieldYr = 1978 OR FieldYr = 2003"&amp;gt;[value]&amp;lt;/expression&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;actually enable the user to enter any range search or OR query, really any SQL query statement on one field. So I think then I could do something like just the one expression below to meet my needs. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;expression alias="FieldYr Advanced Query" textsearchlabel="Enter SQL query, refer to documentation for examples"&amp;gt;[value]&amp;lt;/expression&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tested this out and it is working how I expect. Thank you very much for explaining this to me!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:26:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/enhanced-search-widget-sql-queries/m-p/567217#M16222</guid>
      <dc:creator>LisaArnold</dc:creator>
      <dc:date>2021-12-12T00:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Enhanced search widget sql queries</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/enhanced-search-widget-sql-queries/m-p/567218#M16223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Lisa,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I'm glad that you got it working. I would constantly check the code gallery as I am enhancing and fixing bugs on my widgets all the time. I am about to release a new version (hopefully today) of this Enhanced Search Widget that addresses some symbology issues and introduces a resizable datagrid. So I recommend you always keep up to date on the current version of my widgets.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 17:28:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/enhanced-search-widget-sql-queries/m-p/567218#M16223</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-02-04T17:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Enhanced search widget sql queries</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/enhanced-search-widget-sql-queries/m-p/567219#M16224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will do, looking forward to the new version. Just to make sure... in general when I change to a new version of a widget I should be able to basically replace the specific widget folder (ie. eSearch) in my widgets folder, and then replace the xml config file in that file with my old xml file (ie SearchWidget.xml). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know in some instances I may have to redo my xml file if there are big changes, but in general is the recommended process? I know this version of the eSearch also includes the assets folder inside of it now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 17:52:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/enhanced-search-widget-sql-queries/m-p/567219#M16224</guid>
      <dc:creator>LisaArnold</dc:creator>
      <dc:date>2011-02-04T17:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Enhanced search widget sql queries</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/enhanced-search-widget-sql-queries/m-p/567220#M16225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Lisa,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Yep, that is the best way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 18:12:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/enhanced-search-widget-sql-queries/m-p/567220#M16225</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-02-04T18:12:52Z</dc:date>
    </item>
  </channel>
</rss>

