JSAPI Feature layer created from feature collection and the feature table

2997
3
03-08-2016 01:46 PM
CorySchinkel1
New Contributor

I'm currently working on creating a feature layer from a feature collection and then creating a feature table based on the feature layer (that's a mouthful!).  This all works, except that when I select a row in the feature table the following error shows in the console.  Does anyone know if this setup is supported?  I am using 3.16 of the API.  Here is a link to a demo of what I am trying to accomplish.  http://plnkr.co/edit/4k1gdO?p=preview

TypeError: Object doesn't
support property or method 'emit' TypeError: Object doesn't support property or
method 'emit'

   at Anonymous
function (http://js.arcgis.com/3.16/esri/dijit/FeatureTable.js:74:136)

   at c (https://js.arcgis.com/3.16/:66:215)

   at then (https://js.arcgis.com/3.16/:68:301)

   at b.then (https://js.arcgis.com/3.16/:1038:300)

   at Anonymous
function (http://js.arcgis.com/3.16/esri/dijit/FeatureTable.js:73:329)

   at Anonymous
function (https://js.arcgis.com/3.16/:167:287)

   at k (https://js.arcgis.com/3.16/:189:425)

   at b.then (https://js.arcgis.com/3.16/:192:308)

   at Anonymous
function (http://js.arcgis.com/3.16/esri/dijit/FeatureTable.js:73:213)

   at Anonymous
function (https://js.arcgis.com/3.16/:167:287)

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Cory,


   There was a massive overhaul of th FeatureTable in 3.16. So my first advice is to try it in 3.16.

0 Kudos
CorySchinkel1
New Contributor

Thanks Robert.  This was working prior to 3.16 but I was hoping to leverage some of the overhaul, but I guess that might have to wait if 3.16 is fully baked.

0 Kudos
JillianStanford
Occasional Contributor III

Hi Cory,

Did you every find an answer to this? I'm having the same issue at 3.16.

Jill

0 Kudos