<?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: Calling eSearch query outside of eSearch in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802452#M5363</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;That makes sense.&amp;nbsp; I can see where both options could come in handy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help and quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 May 2016 19:09:42 GMT</pubDate>
    <dc:creator>TomLeMahieu</dc:creator>
    <dc:date>2016-05-05T19:09:42Z</dc:date>
    <item>
      <title>Calling eSearch query outside of eSearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802448#M5359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way to initiate an eSearch query outside of eSearch.&amp;nbsp; Is it possible, for example, to send a query that will open eSearch, use the eSearch widget to run a query on a particular layer and update the AttributeTable widget?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 13:41:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802448#M5359</guid>
      <dc:creator>TomLeMahieu</dc:creator>
      <dc:date>2016-05-04T13:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calling eSearch query outside of eSearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802449#M5360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The eSearch widget has a documented URL Search parameters section in the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 13:46:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802449#M5360</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-05-04T13:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calling eSearch query outside of eSearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802450#M5361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;Ok I read the help. In my case I want to take the parcel number from one widget in a WAB app and send it through the eSearch widget in the same app.&amp;nbsp; Is that possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the expression I would use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?esearch=1819251005&amp;amp;slayer=7&amp;amp;exprnum=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is this just designed to fire off outside of the WAB app?&amp;nbsp;&amp;nbsp; Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://gis.xxxx.com/wab_dev/?esearch=1819251005&amp;amp;slayer=7&amp;amp;exprnum=0" title="https://gis.xxxx.com/wab_dev/?esearch=1819251005&amp;amp;slayer=7&amp;amp;exprnum=0"&gt;https://gis.xxxx.com/wab_dev/?esearch=1819251005&amp;amp;slayer=7&amp;amp;exprnum=0&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 18:39:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802450#M5361</guid>
      <dc:creator>TomLeMahieu</dc:creator>
      <dc:date>2016-05-05T18:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calling eSearch query outside of eSearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802451#M5362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Correct the url search is just for doing a search on app start. For you do do a search using eSearch widget from another widget then you would have to get a reference to the eSearch widget using WidgetManager and then call the search function like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eSearchWidget.search(null, slayerId, exprNum, valsArr, null, false);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 18:57:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802451#M5362</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-05-05T18:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calling eSearch query outside of eSearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802452#M5363</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;That makes sense.&amp;nbsp; I can see where both options could come in handy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help and quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 19:09:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802452#M5363</guid>
      <dc:creator>TomLeMahieu</dc:creator>
      <dc:date>2016-05-05T19:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calling eSearch query outside of eSearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802453#M5364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a custom feature action in webmap popup which basically passes the value of the feature clicked to the eSearch WIdget and perform a search. I have been able to successfully add the feature action to the popup and it opens the eSearch widget, but when trying to use the Search function like you mentioned above, I get an error message saying "Search failed". Looking at the console, it looks like it is sending an empty String to the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is my feature action code :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define([&lt;BR /&gt; 'dojo/_base/declare',&lt;BR /&gt; // 'esri/graphicsUtils',&lt;BR /&gt; '../BaseFeatureAction',&lt;BR /&gt; 'jimu/utils', &lt;BR /&gt; 'jimu/WidgetManager',&lt;BR /&gt; 'jimu/PanelManager',&lt;BR /&gt; 'dojo/_base/array'&lt;BR /&gt; &lt;BR /&gt;], function(declare, /*graphicsUtils,*/ BaseFeatureAction, utils, WidgetManager, PanelManager, array){&lt;BR /&gt; var clazz = declare(BaseFeatureAction, {&lt;BR /&gt; name: 'ShowShwComplaints',&lt;BR /&gt; iconClass: 'icon-statistics',&lt;/P&gt;&lt;P&gt;isFeatureSupported: function(featureSet){&lt;BR /&gt; return featureSet.features.length &amp;gt; 0 &amp;amp;&amp;amp; featureSet.geometryType !== 'point';&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;onExecute: function(featureSet){&lt;BR /&gt; &lt;BR /&gt; var parcelid = featureSet.features[0].attributes.RP_ACCT_ID;&lt;/P&gt;&lt;P&gt;wManager = WidgetManager.getInstance();&lt;BR /&gt; wManager.triggerWidgetOpen("widgets_eSearch_Widget_23");&lt;BR /&gt; &lt;BR /&gt; var widgetCfg = this._getWidgetConfig('eSearch');&lt;BR /&gt; console.log("Widget config value: " + widgetCfg);&lt;BR /&gt; console.log("Widget config label : "+widgetCfg.label);&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; setTimeout(function() {&lt;BR /&gt; &lt;BR /&gt; var eSearchWidget = wManager.getWidgetByLabel(widgetCfg.label);&lt;BR /&gt; console.log("esearch widget value : " + eSearchWidget);&lt;BR /&gt; console.log("Parcel id: "+parcelid);&lt;BR /&gt; //https://localhost/myapp/?esearch=1663590&amp;amp;slayer=9&amp;amp;exprnum=0&lt;BR /&gt; eSearchWidget.search(null, 0, 9, parcelid, null, false);&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;}, 3000);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}, &lt;BR /&gt; &lt;BR /&gt; _getWidgetConfig: function(widgetName){ &lt;BR /&gt; var widgetCnfg = null; &lt;BR /&gt; array.some(WidgetManager.getInstance().appConfig.widgetPool.widgets, function(aWidget) { &lt;BR /&gt; if(aWidget.name == widgetName) { &lt;BR /&gt; console.log("aWidget Name : "+ aWidget.name + " Passed value : " + widgetName);&lt;BR /&gt; widgetCnfg = aWidget; &lt;BR /&gt; return true; &lt;BR /&gt; } &lt;BR /&gt; return false;&lt;/P&gt;&lt;P&gt;}); &lt;BR /&gt; if(!widgetCnfg){ &lt;BR /&gt; /*Check OnScreen widgets if not found in widgetPool*/ &lt;BR /&gt; array.some(WidgetManager.getInstance().appConfig.widgetOnScreen.widgets, function(aWidget) { &lt;BR /&gt; if(aWidget.name == widgetName) { &lt;BR /&gt; widgetCnfg = aWidget; &lt;BR /&gt; return true; &lt;BR /&gt; } &lt;BR /&gt; return false; &lt;BR /&gt; }); &lt;BR /&gt; } &lt;BR /&gt; return widgetCnfg; &lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;});&lt;BR /&gt; return clazz;&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the console message I am getting:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/488760_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2020 19:18:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802453#M5364</guid>
      <dc:creator>Anish_Adhikari</dc:creator>
      <dc:date>2020-04-15T19:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calling eSearch query outside of eSearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802454#M5365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;So based on this code:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;eSearchWidget.search(null, 0, 9, parcelid, null, false);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;You have 10 different expressions configured for the first layer in the eSearch widget?..&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2020 19:44:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802454#M5365</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-04-15T19:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calling eSearch query outside of eSearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802455#M5366</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;There are 10 different Search layers and the layer I am intending to search is the very last and that one has only one search expression.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2020 19:57:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802455#M5366</guid>
      <dc:creator>Anish_Adhikari</dc:creator>
      <dc:date>2020-04-15T19:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calling eSearch query outside of eSearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802456#M5367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK.&amp;nbsp; So you have the zero and nine reversed then&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;eSearchWidget.search(null, 9, 0, parcelid, null, false);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2020 23:24:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802456#M5367</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-04-15T23:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calling eSearch query outside of eSearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802457#M5368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am still seeing the error message after the change. I deleted all the browsing history data just incase but I am still having the same issue. Here is the screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/488826_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2020 23:45:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802457#M5368</guid>
      <dc:creator>Anish_Adhikari</dc:creator>
      <dc:date>2020-04-15T23:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calling eSearch query outside of eSearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802458#M5369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sorry. Try:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;eSearchWidget.search(null, 9, 0, [{value:parcelid}], null, false);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2020 03:41:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802458#M5369</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-04-16T03:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calling eSearch query outside of eSearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802459#M5370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That worked !! . Thank You so much. I really appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2020 16:56:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-query-outside-of-esearch/m-p/802459#M5370</guid>
      <dc:creator>Anish_Adhikari</dc:creator>
      <dc:date>2020-04-17T16:56:56Z</dc:date>
    </item>
  </channel>
</rss>

