<?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 function from eLocae in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-function-from-elocae/m-p/815271#M6952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was so dumb.&amp;nbsp; I had changed the label of eSearch to "Search", so getWidgetByLabel was opening another widget which had a label of "Search".&amp;nbsp; So obviously it couldn't find any functions in the wrong widget.&amp;nbsp; At least you confirmed that the code was correct event though my execution was faulty.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 May 2016 19:33:45 GMT</pubDate>
    <dc:creator>TomLeMahieu</dc:creator>
    <dc:date>2016-05-09T19:33:45Z</dc:date>
    <item>
      <title>Calling eSearch function from eLocae</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-function-from-elocae/m-p/815269#M6950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to call an eSearch function from eLocate.&amp;nbsp; I want to take the point from the eLocator and send it to the eLocate search function.&amp;nbsp; It seems to recognize eSearch, but it keeps saying "&lt;SPAN style="line-height: 115%; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;eSearchWidget.search is not a function&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eLocate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;showlocation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;//Open point in eSearch&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;var widgetCfg =&lt;BR /&gt;this._getWidgetConfig('eSearch');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;if(widgetCfg){&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var eSearchWidget =&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.wManager.getWidgetByLabel(widgetCfg.label);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(eSearchWidget) {&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.wManager.openWidget(eSearchWidget);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eSearchWidget.search(ptGraphic.geometry,0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 9pt;"&gt;It places the graphic on the page, the infowindow appears and it gets all the way to the eSearchWidget.search line and then it errors out. I must be missing something??&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 15:47:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-function-from-elocae/m-p/815269#M6950</guid>
      <dc:creator>TomLeMahieu</dc:creator>
      <dc:date>2016-05-09T15:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calling eSearch function from eLocae</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-function-from-elocae/m-p/815270#M6951</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; That code looks good as long as the eSearch widget has already been loaded (opened and initialized). If the eSearch has not been loaded then the getWidgetByLabel will return null for eSearchWidget.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 17:07:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-function-from-elocae/m-p/815270#M6951</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-05-09T17:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calling eSearch function from eLocae</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-function-from-elocae/m-p/815271#M6952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was so dumb.&amp;nbsp; I had changed the label of eSearch to "Search", so getWidgetByLabel was opening another widget which had a label of "Search".&amp;nbsp; So obviously it couldn't find any functions in the wrong widget.&amp;nbsp; At least you confirmed that the code was correct event though my execution was faulty.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 19:33:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/calling-esearch-function-from-elocae/m-p/815271#M6952</guid>
      <dc:creator>TomLeMahieu</dc:creator>
      <dc:date>2016-05-09T19:33:45Z</dc:date>
    </item>
  </channel>
</rss>

