<?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: esearch widget, returning zero results for fields with domains in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-returning-zero-results-for-fields/m-p/875774#M13541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My setup in equery is:&lt;/P&gt;&lt;P&gt;&lt;CODE class="focusRow subFocusRow"&gt;(Species like 'Brown Bear') AND (Upper(Species) = Upper('B'))&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the REST query is:&lt;/P&gt;&lt;P&gt;&lt;CODE class="focusRow subFocusRow"&gt;Upper(Species) = Upper('B')&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I obviously have something configured wrong in the widget, since i'm assuming it will not be an "AND".&amp;nbsp; I'm wondering if it's holding on to my initial attempts to get it right.&amp;nbsp; Maybe it wrote my query string, and when I changed it, the file did not update?&amp;nbsp; That's fixable for me, I think, if I find the file to modify.&amp;nbsp; If so, maybe a fluke?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Feb 2015 00:42:05 GMT</pubDate>
    <dc:creator>RebeccaStrauch__GISP</dc:creator>
    <dc:date>2015-02-06T00:42:05Z</dc:date>
    <item>
      <title>esearch widget, returning zero results for fields with domains (title edit: domain wasn't issue -rs))</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-returning-zero-results-for-fields/m-p/875768#M13535</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/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;‌&amp;nbsp; (or anyone) - I have the latest version of&amp;nbsp; &lt;A href="https://community.esri.com/docs/DOC-1731"&gt;Enhanced Search Widget Version 1.1.0.3&lt;/A&gt; installed, and have been reading thru the thread and thru the help &lt;A href="http://gis.calhouncounty.org/WAB/V1.1/widgets/eSearch/help/eSearch_Help.htm" title="http://gis.calhouncounty.org/WAB/V1.1/widgets/eSearch/help/eSearch_Help.htm"&gt;Web AppBuilder for ArcGIS | Help - Enhanced Search widget&lt;/A&gt;&amp;nbsp;&amp;nbsp; in the help, you mention mention&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;If your field choice is a field that uses a domain then the domain values will automatically be displayed in a dropdown list during configuration and in the widget UI when the widget is used. The same is true for the &lt;SPAN class="uicontrol"&gt;Unique&lt;/SPAN&gt; option, the widget will query the map service for unique values to populate the dropdown with in the widget.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;My drop down is working as I would like, with the Text value vs the code, however, my results continue to come up as 0 results.&amp;nbsp; Currently the spatial (i.e. first tab) is also coming up with 0, and I thought that part was working for me yesterday.&amp;nbsp; This is my serach&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="59132" alt="" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/59132_pastedImage_5.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is from a secure service (using the latest 1.3&amp;nbsp; LocalLayer widget).&amp;nbsp; So, there are many elements involved.&amp;nbsp; Do you have any additional guidance on the use of field with domains in the Sql Statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With so many updates the past few days, I may just need to step back and start clean, step by step.&amp;nbsp; Never hurts to do that anyway to understand the process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on what I should check before going that route?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 23:05:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-returning-zero-results-for-fields/m-p/875768#M13535</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-02-05T23:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: esearch widget, returning zero results for fields with domains</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-returning-zero-results-for-fields/m-p/875769#M13536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rebecca,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you use the SQL where clause of Upper(Species) = Upper('Brown Bear') (or what ever the actual value of Brown Bear in the coded domain is) in your rest service end point. Do you get results? There should be nothing that you have to do manually to configure a field that uses a domain all this is done for you behind the scenes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 23:25:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-returning-zero-results-for-fields/m-p/875769#M13536</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-02-05T23:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: esearch widget, returning zero results for fields with domains</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-returning-zero-results-for-fields/m-p/875770#M13537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Testing on my dev setup, initial tests with a query get also gets me Zero results.&amp;nbsp; Not sure if that is exactly the same as you mentioned for me to try, but if so, then I'll dig more into my services until I get this to work.&amp;nbsp; This should have given me some results...&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" height="306" src="https://community.esri.com/legacyfs/online/59134_pastedImage_0.png" style="width: 272px; height: 306.219px;" width="272" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 23:36:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-returning-zero-results-for-fields/m-p/875770#M13537</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-02-05T23:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: esearch widget, returning zero results for fields with domains</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-returning-zero-results-for-fields/m-p/875771#M13538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rebecca,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is exactly the test you need to do. So the question is how familiar are you with the data? If the Species field is a coded domain then what is the actual value that is stored in the database when you choose the coded label of 'Brown Bear'? you can substitute the where clause with 1=1 and for out field just put SPecies and make sure to choose return geometry to false. This will give you actual values in the DB for the species field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 23:57:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-returning-zero-results-for-fields/m-p/875771#M13538</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-02-05T23:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: esearch widget, returning zero results for fields with domains</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-returning-zero-results-for-fields/m-p/875772#M13539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very familiar with the data. &lt;/P&gt;&lt;P&gt;Results from "1=1" REST query returns results, as expected.&lt;/P&gt;&lt;P&gt;Results from "Upper(Species) = Upper('B')" query returns results, as expected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The domain for the field looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/59139_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;The widget, with the configuration as shown in the question does show the "Description" in the GUI, which is the desired user interface.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" height="309" src="https://community.esri.com/legacyfs/online/59140_pastedImage_2.png" style="width: 289px; height: 309.036px;" width="289" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 00:14:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-returning-zero-results-for-fields/m-p/875772#M13539</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-02-06T00:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: esearch widget, returning zero results for fields with domains</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-returning-zero-results-for-fields/m-p/875773#M13540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rebecca,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; OK if you open you developer tools right after you submit your search the console should show the exact SQL where clause that was submitted to the server (i.e. "Upper(Code) = Upper('1TH')").&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 00:32:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-returning-zero-results-for-fields/m-p/875773#M13540</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-02-06T00:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: esearch widget, returning zero results for fields with domains</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-returning-zero-results-for-fields/m-p/875774#M13541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My setup in equery is:&lt;/P&gt;&lt;P&gt;&lt;CODE class="focusRow subFocusRow"&gt;(Species like 'Brown Bear') AND (Upper(Species) = Upper('B'))&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the REST query is:&lt;/P&gt;&lt;P&gt;&lt;CODE class="focusRow subFocusRow"&gt;Upper(Species) = Upper('B')&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I obviously have something configured wrong in the widget, since i'm assuming it will not be an "AND".&amp;nbsp; I'm wondering if it's holding on to my initial attempts to get it right.&amp;nbsp; Maybe it wrote my query string, and when I changed it, the file did not update?&amp;nbsp; That's fixable for me, I think, if I find the file to modify.&amp;nbsp; If so, maybe a fluke?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 00:42:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-returning-zero-results-for-fields/m-p/875774#M13541</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-02-06T00:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: esearch widget, returning zero results for fields with domains</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-returning-zero-results-for-fields/m-p/875775#M13542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a summary and follow-up so I can mark this question as answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The three steps Robert suggested helped me determine that my esearch setup was incorrect (Thanks &lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt; for a very nice workflow for troubleshooting).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem turned out to be that I had both a "Definition Expression" entered on the top level of editing a custom search, which is what added the highlighted portion below,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/63478_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; AND&lt;/STRONG&gt; another expression set in a "Search Expression()".&amp;nbsp; I had both since the "hint" for Definition Expression made me think I needed something there.&amp;nbsp; Once I removed my entry in the the "Definition Expression", it seems to work better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words, the fact that I have a domain attached to the field had no impact on my issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 18:57:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-returning-zero-results-for-fields/m-p/875775#M13542</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-02-19T18:57:04Z</dc:date>
    </item>
  </channel>
</rss>

