I am using feature table in one of my application. Can't seem to find a way where after feature is added to the feature layer, table refreshes with the new record, and highlights the new added row.
Any help appreciated.
Thanks
Solved! Go to Solution.
Vikrant,
When you select a feature in the FeatureLayer that the FeatureTable is bound to then the FeatureTable should show the selected record, assuming you call FeatureTable.filterSelectedRecords().
Vikrant,
Can we assume that you have already tried to call refresh() and selectRows()?
https://developers.arcgis.com/javascript/3/jsapi/featuretable-amd.html#refresh
https://developers.arcgis.com/javascript/3/jsapi/featuretable-amd.html#selectrows
Thanks for the reply Robert.
My app was using 3.16 version of API, and I encountered the issue mentioned inFeature Table not refreshing at v3.16
, refresh is not working, so I was calling _createStoreFromDataQuery() function as a workaround.
Now, I just updated my API reference to 3.19, and refresh seems to work. Issue is that selectRows works for selecting rows when rowID is known, in my case when I am adding feature to the layer, and calling featureTable.refresh in applyEdits callback function, I don't know the rowId of the new added row, so couldn't get selectRow to work.
Vikrant,
When you select a feature in the FeatureLayer that the FeatureTable is bound to then the FeatureTable should show the selected record, assuming you call FeatureTable.filterSelectedRecords().
Thanks robert, it seems to be working.
Vikrant,
Don't forget to mark this thread as answered.