<?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: attribute table - click on feature highlights a row. in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attribute-table-click-on-feature-highlights-a-row/m-p/864319#M12136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Yes you are correct the WAB Attribute table widget does not have a similar property so you would have to get the OID of the selected feature i the map and then search the widgets table store for that OID. Actually there are some functions for this that are commented out in the attribute table widget (why they are commented out I do not know).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // onGraphicClick: function(index, event) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // if (!this.showing || index !== this.layersIndex) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; return;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // var id = event.graphic.attributes[this.layers[this.layersIndex].objectIdField] + "";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // this.highlightRow(id);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // this.selectFeatures("mapclick", [event.graphic]);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // },

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // highlightRow: function(id) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // if (!this.showing) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; return;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // var store = this.grids[this.layersIndex].store;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // var row = -1;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // for (var i in store.index) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; if (i === id) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row = store.index&lt;I&gt;;&lt;/I&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // if (row &amp;gt; -1) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; var rowsPerPage = this.grids[this.layersIndex].get("rowsPerPage");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; var pages = parseInt(row / rowsPerPage, 10);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; pages++;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; this.grids[this.layersIndex].gotoPage(pages);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; this.grids[this.layersIndex].clearSelection();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; this.grids[this.layersIndex].select(id);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; this.resetButtonStatus();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // },&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 10:44:11 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2021-12-12T10:44:11Z</dc:date>
    <item>
      <title>attribute table - click on feature highlights a row.</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attribute-table-click-on-feature-highlights-a-row/m-p/864318#M12135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the FeatureTable there is an easy way to click on feature on the map and it highlights the table row for the selected feature on the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;simply use featuretable.&lt;A href="https://developers.arcgis.com/javascript/jsapi/featuretable-amd.html#enablelayerclick" style="color: #00629b; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif;"&gt;enableLayerClick=true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on this example:&lt;/P&gt;&lt;P&gt;&lt;A href="http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=featuretable" title="http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=featuretable"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just enter on line 104 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myTable.enableLayerClick=true; &lt;/P&gt;&lt;P&gt;and any feature you click on the map, you can see the highlighted row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my question. The Attribute table that is used in wab, is not declared as FeatureTable. So, to get the highlighted row after you click a feature on map, you will have to compare the evt and the records on the grid, and once a match is made use &lt;SPAN style="line-height: 1.5;"&gt;grid.rows.setOverRow&amp;nbsp; Am I see it right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 00:20:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attribute-table-click-on-feature-highlights-a-row/m-p/864318#M12135</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2015-12-23T00:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: attribute table - click on feature highlights a row.</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attribute-table-click-on-feature-highlights-a-row/m-p/864319#M12136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Yes you are correct the WAB Attribute table widget does not have a similar property so you would have to get the OID of the selected feature i the map and then search the widgets table store for that OID. Actually there are some functions for this that are commented out in the attribute table widget (why they are commented out I do not know).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // onGraphicClick: function(index, event) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // if (!this.showing || index !== this.layersIndex) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; return;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // var id = event.graphic.attributes[this.layers[this.layersIndex].objectIdField] + "";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // this.highlightRow(id);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // this.selectFeatures("mapclick", [event.graphic]);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // },

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // highlightRow: function(id) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // if (!this.showing) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; return;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // var store = this.grids[this.layersIndex].store;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // var row = -1;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // for (var i in store.index) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; if (i === id) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row = store.index&lt;I&gt;;&lt;/I&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // if (row &amp;gt; -1) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; var rowsPerPage = this.grids[this.layersIndex].get("rowsPerPage");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; var pages = parseInt(row / rowsPerPage, 10);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; pages++;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; this.grids[this.layersIndex].gotoPage(pages);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; this.grids[this.layersIndex].clearSelection();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; this.grids[this.layersIndex].select(id);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; this.resetButtonStatus();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp; // }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // },&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:44:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attribute-table-click-on-feature-highlights-a-row/m-p/864319#M12136</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T10:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: attribute table - click on feature highlights a row.</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attribute-table-click-on-feature-highlights-a-row/m-p/864320#M12137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 01:24:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attribute-table-click-on-feature-highlights-a-row/m-p/864320#M12137</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2015-12-23T01:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: attribute table - click on feature highlights a row.</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attribute-table-click-on-feature-highlights-a-row/m-p/864321#M12138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you have any luck getting this opertional?&amp;nbsp; Did you just uncomment the code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 20:41:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attribute-table-click-on-feature-highlights-a-row/m-p/864321#M12138</guid>
      <dc:creator>JohnMurner</dc:creator>
      <dc:date>2015-12-29T20:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: attribute table - click on feature highlights a row.</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attribute-table-click-on-feature-highlights-a-row/m-p/864322#M12139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't got to it yet. I got distracted to other duties. Will let you know when I do so.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 23:02:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attribute-table-click-on-feature-highlights-a-row/m-p/864322#M12139</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2015-12-30T23:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: attribute table - click on feature highlights a row.</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attribute-table-click-on-feature-highlights-a-row/m-p/864323#M12140</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;I searched for those lines of code in &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;WAB Attribute table widget but couldn't find them.&amp;nbsp; Are they no longer available in newer version ?&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 12:32:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attribute-table-click-on-feature-highlights-a-row/m-p/864323#M12140</guid>
      <dc:creator>helenchu</dc:creator>
      <dc:date>2016-08-11T12:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: attribute table - click on feature highlights a row.</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attribute-table-click-on-feature-highlights-a-row/m-p/864324#M12141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Helen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This code was for older versions of WAB. In WAB 2.1 each layer in the AT Widget automatically responds to a feature being selected by either using FeatureLayer.select or using the Selection widget.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 12:56:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attribute-table-click-on-feature-highlights-a-row/m-p/864324#M12141</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-08-11T12:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: attribute table - click on feature highlights a row.</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attribute-table-click-on-feature-highlights-a-row/m-p/864325#M12142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I currently use 2.0 and haven't downloaded 2.1 yet.&amp;nbsp; I'll try it.&amp;nbsp; Thanks Robert.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 14:42:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attribute-table-click-on-feature-highlights-a-row/m-p/864325#M12142</guid>
      <dc:creator>helenchu</dc:creator>
      <dc:date>2016-08-11T14:42:28Z</dc:date>
    </item>
  </channel>
</rss>

