<?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 Query in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-query/m-p/831035#M8264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;OK. So yes there are several config.json files but when you create an app the only one you are concerned with for that app would be the one in the apps configs folder. I.e:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;WebAppBuilderForArcGIS\server\apps\2\configs\eSearch&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Dec 2019 13:50:14 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2019-12-17T13:50:14Z</dc:date>
    <item>
      <title>eSearch Query</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-query/m-p/831028#M8257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am trying to find out how it would be possible for users to query a spatial layer using the code name for each area by using three different expression values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is relevant to ecosytems and vegetation and looks like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; width: 98.2456%;"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH style="width: 194px;"&gt;ecosystem&amp;nbsp;type&lt;/TH&gt;&lt;TH style="width: 127px;"&gt;veg1&lt;/TH&gt;&lt;TH style="width: 111px;"&gt;veg2&lt;/TH&gt;&lt;TH style="width: 110px;"&gt;veg3&lt;/TH&gt;&lt;TH style="width: 186px;"&gt;Landzone&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width: 194px;"&gt;1.5.1/2.5.1&lt;/TD&gt;&lt;TD style="width: 127px;"&gt;&lt;SPAN&gt;1.5.1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="width: 111px;"&gt;&lt;SPAN&gt;2.5.1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="width: 110px;"&gt;null&lt;/TD&gt;&lt;TD style="width: 186px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 194px;"&gt;2.2.2&lt;/TD&gt;&lt;TD style="width: 127px;"&gt;2.2.2&lt;/TD&gt;&lt;TD style="width: 111px;"&gt;null&lt;/TD&gt;&lt;TD style="width: 110px;"&gt;null&lt;/TD&gt;&lt;TD style="width: 186px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 194px;"&gt;2.2.2x1a&lt;/TD&gt;&lt;TD style="width: 127px;"&gt;2.2.2x1a&lt;/TD&gt;&lt;TD style="width: 111px;"&gt;null&lt;/TD&gt;&lt;TD style="width: 110px;"&gt;null&lt;/TD&gt;&lt;TD style="width: 186px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1.5.1 represent three values for Bioregion.Landzone.Vegetation types&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sometimes the vegetation type has an extention number:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1.5.1x1a&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am only trying to let people be to query on the dominant vegetation type which is the field veg1 and always the first veg type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bioregion has only 12 values so my first expression value is Start with (predefined values) : (1.,2.,3.,4. and so on with labels such as 1. North West Highlands,&amp;nbsp;2. Gulf Plains and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My second expression is the Landzone with only 12 values as well which I have predefined in the same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both expression seems to work great for the first values: Bioregion and Landzone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I have difficulties creating an expression for the third number: vegetation type. I was wondering what would the community suggest, perhaps using an SQL code that would force the query to look at the last number and return all the extention types as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to predefined values with End with expression all the vegetation type numbers as (.1%) so that if the user types (vegetation type 1) the they will get the vegetation type 1 areas and all the extention that they don t know about as well. But that also returns features like&amp;nbsp; 2&lt;SPAN style="color: #ff0000;"&gt;.1&lt;/SPAN&gt;.3 and 2.3&lt;SPAN style="color: #ff0000;"&gt;.1&lt;/SPAN&gt;1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be great if there was a way to add an expression with an SQL that will allow the user to search for the dominant ecosystem type by being able to search vegetation type (the last number) and juste type a number from 1 to 50. And if they typed 1, it would be great if they only get values that end with .1 and .1a, .1b .1xa..&amp;nbsp; and not .&lt;SPAN style="color: #ff0000;"&gt;1&lt;/SPAN&gt;1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="screenshot" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/475913_vegtype_query.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you help,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeremy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;widjets&amp;nbsp;&lt;A href="https://community.esri.com/t5/tag/sql/tg-p"&gt;#sql&lt;/A&gt;&amp;nbsp; &lt;A href="https://community.esri.com/t5/tag/enhanced query/tg-p"&gt;#enhanced query&lt;/A&gt;‌ &lt;A href="https://community.esri.com/t5/tag/feature query/tg-p"&gt;#feature query&lt;/A&gt;‌&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2019 01:13:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-query/m-p/831028#M8257</guid>
      <dc:creator>JeremyWolff</dc:creator>
      <dc:date>2019-12-11T01:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch Query</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-query/m-p/831029#M8258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;There is no support in the UI for such complex queries. What I mean is the the eSearch widgets settings dialog can not support building a query that would work for this, but the widget itself can support a complex query that is needed for this. You just have to manually edit the widgets config.json file to alter the sql text. This is what the sqlText would look like:&lt;/P&gt;&lt;P&gt;[value][a-z]%&lt;/P&gt;&lt;P&gt;This means [value] = the value the user enters in the input window (i.e. 1.5.1)&lt;/P&gt;&lt;P&gt;[a-z] = means that the value above must be followed by a non numeric value&amp;nbsp;&lt;/P&gt;&lt;P&gt;% = means that the non numeric value can be followed by any length of alpha numeric characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the expression would find 1.5.1, 1.5.1a, 1.5.1b, 1.5.1xa and NOT find 1.5.11&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2019 15:28:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-query/m-p/831029#M8258</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-12-11T15:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch Query</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-query/m-p/831030#M8259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you walk me through that process again. I might be doing something wrong because as soon as I modify a config.json file the app won’t work and I get this sort of error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cannot GET /webappbuilder/apps/2/widgets/widgets-manifest.json&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;:3344/webappbuilder/stemapp/jimu.js/ConfigLoader.js?wab_dv=2.14:1144 Widget is removed because it is not loaded successfully. widgets/LayerList/Widget&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I be modifying the config.json file in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WebAppBuilderForArcGIS\server\apps\2\configs\Query&lt;/P&gt;&lt;P&gt;Or in&lt;/P&gt;&lt;P&gt;WebAppBuilderForArcGIS\server\apps\2\widgets\Query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then just save in notes and refresh my webpage?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards and thank you for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeremy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2019 06:53:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-query/m-p/831030#M8259</guid>
      <dc:creator>JeremyWolff</dc:creator>
      <dc:date>2019-12-12T06:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch Query</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-query/m-p/831031#M8260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Sorry I thought this question was about the eSearch widget. If that is the case then I am not sure why you are modifying the Query widgets config.json.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2019 13:53:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-query/m-p/831031#M8260</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-12-12T13:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch Query</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-query/m-p/831032#M8261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well it seems that the neither query widget nor the esearch widget would support the queries that I am trying to create:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;“expression would find 1.5.1, 1.5.1a, 1.5.1b, 1.5.1xa and NOT find 1.5.11”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, I am trying to modify one or the other. In that case could you let me know which file should I modify exactly please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeremy Wolff.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Dec 2019 23:43:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-query/m-p/831032#M8261</guid>
      <dc:creator>JeremyWolff</dc:creator>
      <dc:date>2019-12-15T23:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch Query</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-query/m-p/831033#M8262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; As I mentioned&amp;nbsp;the eSearch (and neither the query widget) are not setup for complex queries like this. But&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;but the widget itself can support a complex query that is needed for this. You just have to manually edit the widgets config.json file to alter the sql text. This is what the sqlText would look like:&lt;/P&gt;&lt;P&gt;[value][a-z]%&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I do not have your data or your configuration to be able to test what exactly you must must be manually put in the eSearch config.json. So the best thing for you to do is provide me your eSearch config.json where you have the first two drop downs working and I can see if I can get the sql expression I provided to plug into what you already have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2019 13:38:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-query/m-p/831033#M8262</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-12-16T13:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch Query</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-query/m-p/831034#M8263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason the eSearch widget works when I create a new app but does not when I add it to the app I have been developing. But let’s solve one problem at a time.. : )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just one question which is unclear to me before I reconfigure the eSearch widget and send it to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you say : “You just have to manually edit the widgets config.json file to alter the sql text.” Where is that file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·         WebAppBuilderForArcGIS\client\stemapp\Enhanced Search ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·         WebAppBuilderForArcGIS\server\apps\2\widgets\eSearch ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·         WebAppBuilderForArcGIS\server\apps\2\configs\eSearch ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Config.json file are everywhere and they all contain lines like these “"sqltext": "ZONING_TYPE = '[value]'",”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you could just point out to me which one should I try to edit with [a-z]% I would be happy to give that a try myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeremy Wolff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2019 06:01:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-query/m-p/831034#M8263</guid>
      <dc:creator>JeremyWolff</dc:creator>
      <dc:date>2019-12-17T06:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch Query</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-query/m-p/831035#M8264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;OK. So yes there are several config.json files but when you create an app the only one you are concerned with for that app would be the one in the apps configs folder. I.e:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;WebAppBuilderForArcGIS\server\apps\2\configs\eSearch&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2019 13:50:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-query/m-p/831035#M8264</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-12-17T13:50:14Z</dc:date>
    </item>
  </channel>
</rss>

