<?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 FeatureTable syncSelection in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-syncselection/m-p/633659#M59187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've created a custom featureLayer from a featureClass that's been created from some query results. I add it to the map and then used it to spin up a featureTable. The featureTable looks fine but I can't seem to get table records to sync with the map graphics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select a feature from the table, the header says that one feature has been selected but the map doesn't pan, like in the samples and I get the following console error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TypeError: Object doesn't support property or method 'emit' TypeError: Object doesn't support property or method 'emit'&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at Anonymous function (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.16%2Fesri%2Fdijit%2FFeatureTable.js%3A74%3A136" target="_blank"&gt;http://js.arcgis.com/3.16/esri/dijit/FeatureTable.js:74:136&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I choose "Center on Selection" from the Options menu I get an additional console error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: FeatureLayer::_query - query contains one or more unsupported parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone point me to where I'm setting things up incorrectly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var resultsLayerDefinition = {
&amp;nbsp;&amp;nbsp;&amp;nbsp; "geometryType": queryResults[0].geometryType,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "fields": queryResults[0].fields
}; 
&amp;nbsp; 
//Workaround. FeatureTable will not work with results directly.
&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2150" data-containertype="14" data-objectid="165943" data-objecttype="1" href="https://community.esri.com/thread/165943" target="_blank"&gt;https://community.esri.com/thread/165943&lt;/A&gt;
var copyFeatures = dojo.map(allFeatures, function (feature) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; return new Graphic(feature.toJson());
});

var resultsFeatureClass = {
&amp;nbsp;&amp;nbsp;&amp;nbsp; layerDefinition: resultsLayerDefinition,
&amp;nbsp;&amp;nbsp;&amp;nbsp; featureSet: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "features": copyFeatures,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "geometryType": queryResults[0].geometryType
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
};

this._resultsFeatureLayer = new FeatureLayer(resultsFeatureClass);

var renderer = new SimpleRenderer(this._pointSymbol);
this._resultsFeatureLayer.setRenderer(renderer);

this.map.addLayer(this._resultsFeatureLayer);

this._resultsAttributeTable = new FeatureTable({
&amp;nbsp;&amp;nbsp;&amp;nbsp; "featureLayer" : this._resultsFeatureLayer,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "map" : this.map,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "syncSelection": true,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "zoomToSelection": true
}, 'attributeTable');

this._resultsAttributeTable.startup();&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using JSAPI 3.16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jill&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ETA: It seems that others have reported this issue: &lt;A href="https://community.esri.com/thread/173662" target="_blank"&gt;JSAPI Feature layer created from feature collection and the feature table&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 02:57:28 GMT</pubDate>
    <dc:creator>JillianStanford</dc:creator>
    <dc:date>2021-12-12T02:57:28Z</dc:date>
    <item>
      <title>FeatureTable syncSelection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-syncselection/m-p/633659#M59187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've created a custom featureLayer from a featureClass that's been created from some query results. I add it to the map and then used it to spin up a featureTable. The featureTable looks fine but I can't seem to get table records to sync with the map graphics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select a feature from the table, the header says that one feature has been selected but the map doesn't pan, like in the samples and I get the following console error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TypeError: Object doesn't support property or method 'emit' TypeError: Object doesn't support property or method 'emit'&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at Anonymous function (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.16%2Fesri%2Fdijit%2FFeatureTable.js%3A74%3A136" target="_blank"&gt;http://js.arcgis.com/3.16/esri/dijit/FeatureTable.js:74:136&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I choose "Center on Selection" from the Options menu I get an additional console error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: FeatureLayer::_query - query contains one or more unsupported parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone point me to where I'm setting things up incorrectly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var resultsLayerDefinition = {
&amp;nbsp;&amp;nbsp;&amp;nbsp; "geometryType": queryResults[0].geometryType,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "fields": queryResults[0].fields
}; 
&amp;nbsp; 
//Workaround. FeatureTable will not work with results directly.
&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2150" data-containertype="14" data-objectid="165943" data-objecttype="1" href="https://community.esri.com/thread/165943" target="_blank"&gt;https://community.esri.com/thread/165943&lt;/A&gt;
var copyFeatures = dojo.map(allFeatures, function (feature) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; return new Graphic(feature.toJson());
});

var resultsFeatureClass = {
&amp;nbsp;&amp;nbsp;&amp;nbsp; layerDefinition: resultsLayerDefinition,
&amp;nbsp;&amp;nbsp;&amp;nbsp; featureSet: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "features": copyFeatures,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "geometryType": queryResults[0].geometryType
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
};

this._resultsFeatureLayer = new FeatureLayer(resultsFeatureClass);

var renderer = new SimpleRenderer(this._pointSymbol);
this._resultsFeatureLayer.setRenderer(renderer);

this.map.addLayer(this._resultsFeatureLayer);

this._resultsAttributeTable = new FeatureTable({
&amp;nbsp;&amp;nbsp;&amp;nbsp; "featureLayer" : this._resultsFeatureLayer,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "map" : this.map,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "syncSelection": true,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "zoomToSelection": true
}, 'attributeTable');

this._resultsAttributeTable.startup();&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using JSAPI 3.16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jill&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ETA: It seems that others have reported this issue: &lt;A href="https://community.esri.com/thread/173662" target="_blank"&gt;JSAPI Feature layer created from feature collection and the feature table&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:57:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-syncselection/m-p/633659#M59187</guid>
      <dc:creator>JillianStanford</dc:creator>
      <dc:date>2021-12-12T02:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureTable syncSelection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-syncselection/m-p/633660#M59188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jillian, thanks for reporting this issue. It should be fixed in the upcoming 3.17 release. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 18:35:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-syncselection/m-p/633660#M59188</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2016-05-17T18:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureTable syncSelection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-syncselection/m-p/633661#M59189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There will be a 3.17 release? In addition to 4.0?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;Jill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 19:39:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-syncselection/m-p/633661#M59189</guid>
      <dc:creator>JillianStanford</dc:creator>
      <dc:date>2016-05-17T19:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureTable syncSelection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-syncselection/m-p/633662#M59190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jillian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Yes the 3.x and 4.x will continue to receive updates until the 4.x API is more mature and contains all the 3.x features that are not yet added to 4.0 based on the functionality matrix. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/guide/functionality-matrix/index.html" title="https://developers.arcgis.com/javascript/latest/guide/functionality-matrix/index.html"&gt;Functionality matrix | ArcGIS API for JavaScript 4.0&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 20:31:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-syncselection/m-p/633662#M59190</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-05-17T20:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureTable syncSelection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-syncselection/m-p/633663#M59191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh interesting. Thanks for the info, Robert!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 20:37:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-syncselection/m-p/633663#M59191</guid>
      <dc:creator>JillianStanford</dc:creator>
      <dc:date>2016-05-17T20:37:58Z</dc:date>
    </item>
  </channel>
</rss>

