<?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 widget and related tables in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-and-related-tables/m-p/826470#M7891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for this great widget, Robert. You've done fantastic work and we appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Nov 2015 15:45:44 GMT</pubDate>
    <dc:creator>JosephMootz1</dc:creator>
    <dc:date>2015-11-20T15:45:44Z</dc:date>
    <item>
      <title>eSearch widget and related tables</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-and-related-tables/m-p/826466#M7887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the eSearch widget in web appbuilder 1.2 and am running into an issue when trying to search on a layer that has tables related to it.&amp;nbsp; My relates are set up in an MXD which I created a map service from.&amp;nbsp; Pop-ups work fine in Portal, as well as in WAB.&amp;nbsp; However, when I add the layer to eSearch (Parcels) and try to search on it using eSearch, I get this error:&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/142868_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine when I remove the layer with related tables.&amp;nbsp; Has anyone seen this?&amp;nbsp; Is it a bug or limitation to the eSearch widget or am I not doing something I'm supposed to be doing?&amp;nbsp; I'd appreciate any input anyone has on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adam Vellutini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 19:12:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-and-related-tables/m-p/826466#M7887</guid>
      <dc:creator>AdamVellutini</dc:creator>
      <dc:date>2015-11-13T19:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch widget and related tables</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-and-related-tables/m-p/826467#M7888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Most of the time you see that message when the widget fails to get the layerinfo from your map service for some reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mention the data has relates having related tables on a layer is not an issue. I have multiple layers that are used in the eSearch that have related tables. Now searching a related table is not supported in the eSearch widget. Currently searching layer with no spatial component (i.e. tables) is not supported by the eSearch widget.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 20:30:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-and-related-tables/m-p/826467#M7888</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-13T20:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch widget and related tables</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-and-related-tables/m-p/826468#M7889</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;We did some troubleshooting and found that there is one line in the _getLayerInfoWithRelationships function in the Widget.js file that we changed and resolved our issue with related tables. There are 4 resolve statements toward the end of the function as shown below:&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; def.resolve({state: 'success', value: layerInfo});&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }), lang.hitch(this, function (err) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; def.resolve({state: 'failure', value: err});&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }));&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt; def.resolve(layerInfo);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }), lang.hitch(this, function (err) {&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; def.resolve({state: 'failure', value: err});&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }));&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return def;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we change the one underlined above to match the same pattern as the others as shown below, the related tables seem to work in esearch.&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;def.resolve({&lt;STRONG&gt;state: 'success',&lt;/STRONG&gt; value: layerInfo});&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like the state attribute was missing from that one statement. &lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 23:03:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-and-related-tables/m-p/826468#M7889</guid>
      <dc:creator>JosephMootz1</dc:creator>
      <dc:date>2015-11-19T23:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch widget and related tables</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-and-related-tables/m-p/826469#M7890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks, I missed that. I will get it added to the next release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 02:11:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-and-related-tables/m-p/826469#M7890</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-20T02:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch widget and related tables</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-and-related-tables/m-p/826470#M7891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for this great widget, Robert. You've done fantastic work and we appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 15:45:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-and-related-tables/m-p/826470#M7891</guid>
      <dc:creator>JosephMootz1</dc:creator>
      <dc:date>2015-11-20T15:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch widget and related tables</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-and-related-tables/m-p/826471#M7892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a general question about the eSearch widget.&amp;nbsp; When I perform a search on a feature class (parcels) that has tables related to it (owners), should the owner table information show up in the attribute table like the parcel layer attributes do? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a line item in the "Older enhancements or changes.txt" file, under "Version 1.1x list:" that states "*Search results now support related records link from the popup and the &lt;STRONG&gt;Attribute Table Widget will now open related records properly&lt;/STRONG&gt;".&amp;nbsp; That lead me to believe the related table attributes should open in the Attribute Table after performing a search using the eSearch.&amp;nbsp; However, I cannot get that functionality to work and have tried just about everything in my testing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is; am I reading that wrong?&amp;nbsp; Does eSearch support this functionality?&amp;nbsp; If not, then I will stop testing and trying to figure out how to configure that. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for all the work you have done developing these custom widgets.&amp;nbsp; They have been very useful!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 16:26:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-and-related-tables/m-p/826471#M7892</guid>
      <dc:creator>AdamVellutini</dc:creator>
      <dc:date>2016-01-08T16:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch widget and related tables</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-and-related-tables/m-p/826472#M7893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; That note from 1.1x is saying that if the popup for the layer has a related records link inside of the popup then this will open the related table in the Attribute table widget. But that was a long time ago and the way search results are handled now after a couple of WAB versions this is not an option any more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 16:55:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-and-related-tables/m-p/826472#M7893</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-01-08T16:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch widget and related tables</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-and-related-tables/m-p/826473#M7894</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;Thank you for the response and for clarifying that!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 16:59:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-and-related-tables/m-p/826473#M7894</guid>
      <dc:creator>AdamVellutini</dc:creator>
      <dc:date>2016-01-08T16:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: eSearch widget and related tables</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-and-related-tables/m-p/826474#M7895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I hope to support related tables in future releases of the eSearch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 17:16:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esearch-widget-and-related-tables/m-p/826474#M7895</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-01-08T17:16:20Z</dc:date>
    </item>
  </channel>
</rss>

