This is an old post, so I'm not sure if this method was around at the time, but since this thread came up in my search for an answer to the same problem, I thought I would add my solution. I'm using ArcGIS API for Javascript 3.23.
Basically, I added an event listener on the feature layer that was tied to the feature table. Anytime an edit is made on the feature layer, the feature table is refreshed. Note that any selections the user has made within the feature table will be rest. This works for the edits made from the toolbar as well (Delete, Undo, etc.)
<SPAN class="operator token"><</SPAN>featurelayer<SPAN class="operator token">></SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">on</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"edits-complete"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">function</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN> <SPAN class="operator token"><</SPAN>featuretable<SPAN class="operator token">></SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">refresh</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
*First time posting, sorry if I have violated any rules.
Přihlaste se pro psaní příspěvků, sledování obsahu a další. Jste tu noví? Zaregistrujte se zdarma.