<?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 MultiQuery from 2 layers in same Map Service in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-multiquery-from-2-layers-in-same-map/m-p/813978#M6767</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 have now been able to get it to query two layers but now I am having issues with the symbology return on results.&lt;/P&gt;&lt;P&gt;One of the layers is a polygon and the other is a point. It will only see the first layer and returns the symbology of it not the second layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip Simonds | SCAD |  903.510.8643&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Sep 2018 17:19:54 GMT</pubDate>
    <dc:creator>ChipSimonds</dc:creator>
    <dc:date>2018-09-06T17:19:54Z</dc:date>
    <item>
      <title>eSearch MultiQuery from 2 layers in same Map Service</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-multiquery-from-2-layers-in-same-map/m-p/813976#M6765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a rest service I would like to query using the eSearch Version 2.6.1.1. This service has two layers i want to query, if the data is not in one search the other.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.smithcountymapsite.org/publicgis/rest/services/Gallery/TaxParcelQuery/MapServer"&gt;https://www.smithcountymapsite.org/publicgis/rest/services/Gallery/TaxParcelQuery/MapServer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible with the eSearch Widget using the dev version of wab 2.9?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 16:10:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-multiquery-from-2-layers-in-same-map/m-p/813976#M6765</guid>
      <dc:creator>ChipSimonds</dc:creator>
      <dc:date>2018-08-30T16:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch MultiQuery from 2 layers in same Map Service</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-multiquery-from-2-layers-in-same-map/m-p/813977#M6766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;On that is not possible. The design of the eSearch widget to to only search a single layer in a MapService since it uses the esri QueryTask that is limited to one layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 16:13:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-multiquery-from-2-layers-in-same-map/m-p/813977#M6766</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-08-30T16:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch MultiQuery from 2 layers in same Map Service</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-multiquery-from-2-layers-in-same-map/m-p/813978#M6767</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 have now been able to get it to query two layers but now I am having issues with the symbology return on results.&lt;/P&gt;&lt;P&gt;One of the layers is a polygon and the other is a point. It will only see the first layer and returns the symbology of it not the second layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip Simonds | SCAD |  903.510.8643&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 17:19:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-multiquery-from-2-layers-in-same-map/m-p/813978#M6767</guid>
      <dc:creator>ChipSimonds</dc:creator>
      <dc:date>2018-09-06T17:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch MultiQuery from 2 layers in same Map Service</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-multiquery-from-2-layers-in-same-map/m-p/813979#M6768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Maybe I did not understand your question then. Are you just wanting to have two layers setup to search but not at the same time? What do you mean you were able to do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 17:43:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-multiquery-from-2-layers-in-same-map/m-p/813979#M6768</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-09-06T17:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch MultiQuery from 2 layers in same Map Service</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-multiquery-from-2-layers-in-same-map/m-p/813980#M6769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No I want to search two layers from a single search query&lt;/P&gt;&lt;P&gt;https://www.smithcountymapsite.org/publicgis/rest/services/Gallery/TaxParcelQuery/MapServer/0&lt;/P&gt;&lt;P&gt;https://www.smithcountymapsite.org/publicgis/rest/services/Gallery/TaxParcelQuery/MapServer/1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the eSearch config file I added this.&lt;/P&gt;&lt;P&gt;      "MultiQuery": {&lt;/P&gt;&lt;P&gt;        "enabled": true,&lt;/P&gt;&lt;P&gt;        "grouplayers" : [&lt;/P&gt;&lt;P&gt;            {&lt;/P&gt;&lt;P&gt;                "url": "https://www.smithcountymapsite.org/publicgis/rest/services/Gallery/TaxParcelQuery/MapServer/0",&lt;/P&gt;&lt;P&gt;                "expression": "UPPER(OWN1) LIKE UPPER('%[value]%') OR (ACCOUNT like '%[value]%'AND CHAR_LENGTH('[value]') &amp;gt; 10) or (PIN like '%[value]%'AND CHAR_LENGTH('[value]') &amp;gt;= 6)"&lt;/P&gt;&lt;P&gt;            },&lt;/P&gt;&lt;P&gt;            {&lt;/P&gt;&lt;P&gt;                "url": "https://www.smithcountymapsite.org/publicgis/rest/services/Gallery/TaxParcelQuery/MapServer/1",&lt;/P&gt;&lt;P&gt;                "expression": "UPPER(OWN1) LIKE UPPER('%[value]%') OR (ACCOUNT like '%[value]%'AND CHAR_LENGTH('[value]') &amp;gt; 10) or (PIN like '%[value]%'AND CHAR_LENGTH('[value]') &amp;gt;= 6)"&lt;/P&gt;&lt;P&gt;            }&lt;/P&gt;&lt;P&gt;         ]&lt;/P&gt;&lt;P&gt;      },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the widget.js I added this.&lt;/P&gt;&lt;P&gt;        var multiqueryUrl, multiqueryTask = null;;&lt;/P&gt;&lt;P&gt;        if (this.config.layers[layerIndex].MultiQuery.enabled) {&lt;/P&gt;&lt;P&gt;          adding = true;&lt;/P&gt;&lt;P&gt;          //console.log('multilayer query enabled');&lt;/P&gt;&lt;P&gt;          for (var i = 0, len = this.config.layers[layerIndex].MultiQuery.grouplayers.length; i &amp;lt; len; i++) {&lt;/P&gt;&lt;P&gt;                multiqueryUrl = this.config.layers[layerIndex].MultiQuery.grouplayers&lt;I&gt;.url;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;                multiqueryTask = new QueryTask(multiqueryUrl);&lt;/P&gt;&lt;P&gt;                multiqueryTask.execute(queryParams, lang.hitch(this, this._onSearchFinish, layerIndex, closeOnComplete, removing, adding),&lt;/P&gt;&lt;P&gt;                    lang.hitch(this, this._onSearchError));&lt;/P&gt;&lt;P&gt;          }&lt;/P&gt;&lt;P&gt;        } else {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        var queryTask = new QueryTask(layerConfig.url);&lt;/P&gt;&lt;P&gt;        html.empty(this.divResultMessage);&lt;/P&gt;&lt;P&gt;        html.place(html.toDom(this.nls.searching), this.divResultMessage);&lt;/P&gt;&lt;P&gt;        queryTask.execute(queryParams, lang.hitch(this, this._onSearchFinish, layerIndex, closeOnComplete, removing, adding),&lt;/P&gt;&lt;P&gt;          lang.hitch(this, this._onSearchError));&lt;/P&gt;&lt;P&gt;                                }&lt;/P&gt;&lt;P&gt;                  },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am now able to search the two layers and return the result but they all show a polygon symbol instead of a point symbology since some are points(0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip Simonds | SCAD |  903.510.8643&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 18:12:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-multiquery-from-2-layers-in-same-map/m-p/813980#M6769</guid>
      <dc:creator>ChipSimonds</dc:creator>
      <dc:date>2018-09-06T18:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch MultiQuery from 2 layers in same Map Service</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-multiquery-from-2-layers-in-same-map/m-p/813981#M6770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chip, this is because&amp;nbsp;the widget is setup to produce one results layer and a layer can only have one geometry type. You would have to do a lot more coding to make the widget capable of handing searching multiple layers at once. Each layer search would need to produce it's own search results layer for starters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 18:40:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-multiquery-from-2-layers-in-same-map/m-p/813981#M6770</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-09-06T18:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch MultiQuery from 2 layers in same Map Service</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-multiquery-from-2-layers-in-same-map/m-p/813982#M6771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Robert, thank you, I will keep digging and hopefully find a way to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip Simonds | SCAD |  903.510.8643&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 18:43:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-multiquery-from-2-layers-in-same-map/m-p/813982#M6771</guid>
      <dc:creator>ChipSimonds</dc:creator>
      <dc:date>2018-09-06T18:43:54Z</dc:date>
    </item>
  </channel>
</rss>

