<?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 Close eSearch widget programmatically in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/close-esearch-widget-programmatically/m-p/846863#M10504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have any idea how to close the eSearch widget programmatically after it has finished loading on startup? I want it to "openAtStart" to enable me to use the "esearch" and "slayer" URL parameters from a different application, although I don't want it to remain open for my users. Hopefully that makes some sense? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been playing around in the WidgetManager.js trying widget.closeWidget() and widget.destroy() and _removeWidget('_6') to no avail. Maybe I'm not placing these in the right place?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 May 2015 17:30:02 GMT</pubDate>
    <dc:creator>RyanStrain</dc:creator>
    <dc:date>2015-05-07T17:30:02Z</dc:date>
    <item>
      <title>Close eSearch widget programmatically</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/close-esearch-widget-programmatically/m-p/846863#M10504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have any idea how to close the eSearch widget programmatically after it has finished loading on startup? I want it to "openAtStart" to enable me to use the "esearch" and "slayer" URL parameters from a different application, although I don't want it to remain open for my users. Hopefully that makes some sense? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been playing around in the WidgetManager.js trying widget.closeWidget() and widget.destroy() and _removeWidget('_6') to no avail. Maybe I'm not placing these in the right place?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 17:30:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/close-esearch-widget-programmatically/m-p/846863#M10504</guid>
      <dc:creator>RyanStrain</dc:creator>
      <dc:date>2015-05-07T17:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Close eSearch widget programmatically</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/close-esearch-widget-programmatically/m-p/846864#M10505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So you want it to use the URL search and then when it has completed the initial search to close? So what good with the search be? Are you only wanting the results to remain displayed in the Attribute Table Widget?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 18:28:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/close-esearch-widget-programmatically/m-p/846864#M10505</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-05-07T18:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Close eSearch widget programmatically</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/close-esearch-widget-programmatically/m-p/846865#M10506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly. It's not professional. I was just looking for a quick way to zoom to a feature, highlight it, and have the attributes exposed using only url parameters. Your eSearch widget provides that URL usage. It may not be the solution, I just wanted to see how it would look, and I'm frustrated that I can't simply get the widget to programmatically close. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 20:31:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/close-esearch-widget-programmatically/m-p/846865#M10506</guid>
      <dc:creator>RyanStrain</dc:creator>
      <dc:date>2015-05-07T20:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Close eSearch widget programmatically</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/close-esearch-widget-programmatically/m-p/846866#M10507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; OK here is how to close a widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need this require:&lt;/P&gt;&lt;P&gt;'jimu/PanelManager'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PanelManager.getInstance().closePanel(this.id + '_panel');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now where you place this in the eSearch widgets code is a whole other story. You need to do this after the widget is done searching (but not when any search is done...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a version that does this only for url searches (I did not test this much).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 16:27:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/close-esearch-widget-programmatically/m-p/846866#M10507</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-05-08T16:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Close eSearch widget programmatically</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/close-esearch-widget-programmatically/m-p/846867#M10508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert. My request was confusing, and probably only specific to my needs. I was able to use the PanelManager.js to close the eSearch widget before it displays. That way the URL parameters are available for an external application to open zoomed to a highlighted feature with the table displayed. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Also, users navigating directly to the site won't notice the widget enabling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/96479_pastedImage_3.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 17:48:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/close-esearch-widget-programmatically/m-p/846867#M10508</guid>
      <dc:creator>RyanStrain</dc:creator>
      <dc:date>2015-05-08T17:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Close eSearch widget programmatically</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/close-esearch-widget-programmatically/m-p/846868#M10509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/strainryan"&gt;strainryan&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Can you please share the closePanel code if possible? I am trying to replicate the same thing but I am unable to make it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sonia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 17:11:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/close-esearch-widget-programmatically/m-p/846868#M10509</guid>
      <dc:creator>soniamonga</dc:creator>
      <dc:date>2017-01-23T17:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Close eSearch widget programmatically</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/close-esearch-widget-programmatically/m-p/846869#M10510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sonia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;There is a close url parameter available for the eSearch:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://gis.calhouncounty.org/WAB/V2.2/widgets/eSearch/help/eSearch_Help.htm#GUID-ECDFB290-706C-4609-B74A-4F88B552A73C" title="http://gis.calhouncounty.org/WAB/V2.2/widgets/eSearch/help/eSearch_Help.htm#GUID-ECDFB290-706C-4609-B74A-4F88B552A73C"&gt;Web AppBuilder for ArcGIS | Help - Enhanced Search widget | url parameters&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;You can optionally add an ampersand and then the &lt;SPAN class="" style="font-weight: bold; font-size: 12.6px;"&gt;close&lt;/SPAN&gt; parameter and equals sign followed by true. The close parameter will close the eSearch widget once the URL search is done executing. Here is an example: &amp;amp;close=true.&lt;/P&gt;&lt;P&gt;This is useful if you want the search results added to the map and/or Attribute Table Widget and do not need the eSearch widget visible after that. The widget must be set to "open at start" in order for the widget to execute the search when the app starts.&lt;/P&gt;&lt;P&gt;To set the widget to "open at start" just click the lower left corner of the widget icon as indicated below.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 17:18:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/close-esearch-widget-programmatically/m-p/846869#M10510</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-01-23T17:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Close eSearch widget programmatically</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/close-esearch-widget-programmatically/m-p/846870#M10511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert! Appreciate your prompt reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 17:27:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/close-esearch-widget-programmatically/m-p/846870#M10511</guid>
      <dc:creator>soniamonga</dc:creator>
      <dc:date>2017-01-23T17:27:33Z</dc:date>
    </item>
  </channel>
</rss>

