<?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: FeatureLayer: &amp;quot;graphic-add&amp;quot; event is not fired consistently. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-quot-graphic-add-quot-event-is-not/m-p/333942#M30851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to update a feature just before its added to a feature layer your best bet is to listen to the feature layer's before-apply-edits event. This event fires just before features are added to the layer. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Aug 2015 20:56:05 GMT</pubDate>
    <dc:creator>KellyHutchins</dc:creator>
    <dc:date>2015-08-31T20:56:05Z</dc:date>
    <item>
      <title>FeatureLayer: "graphic-add" event is not fired consistently.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-quot-graphic-add-quot-event-is-not/m-p/333941#M30850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added a FeatureLayer to my web map for online editing. I have also set an event listener to the "graphic-add" event.&lt;/P&gt;&lt;P&gt;I use the Editor widget and the TemplatePicker widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I first choose a template from the TemplatePicker, and then digitize a graph on the map.&lt;/P&gt;&lt;P&gt;The plan is to call a function to update the attribute information after the graph is added to the featurelayer.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P style="padding-left: 30px;"&gt;myEditingFLayer.on("graphic-add", updateGrpAttribute);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;updateGrpAttribute : function(evt){&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;var gg = evt.graphic;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;gg.attributes["UserName"] = userName;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;gg.attributes["LASTUPDATE"] = updateTime;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-family: inherit; line-height: 1.5;"&gt;gg.attributes["CntyFips"] = CNTY_ID;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;gg.attributes["CAPTUREMETH"] = "Placed on Map";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;myEditingFLayer&lt;/SPAN&gt;.applyEdits(null, [gg], null, EditNew_Success, error);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, this handler is not consistently fired. If I see the progress bar displays, the designated event handler will not be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 20:49:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-quot-graphic-add-quot-event-is-not/m-p/333941#M30850</guid>
      <dc:creator>mikechen</dc:creator>
      <dc:date>2015-08-31T20:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer: "graphic-add" event is not fired consistently.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-quot-graphic-add-quot-event-is-not/m-p/333942#M30851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to update a feature just before its added to a feature layer your best bet is to listen to the feature layer's before-apply-edits event. This event fires just before features are added to the layer. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 20:56:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-quot-graphic-add-quot-event-is-not/m-p/333942#M30851</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2015-08-31T20:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer: "graphic-add" event is not fired consistently.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-quot-graphic-add-quot-event-is-not/m-p/333943#M30852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kelly, thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure how to listen to "before-apply-edits" event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the "graphic-add" event, my scenario is as follows:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P style="padding-left: 30px;"&gt;(1) choose a template from the TemplatePicker widget.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;(2) digitize a graph on the map. Since the graph is based on selected template, I suppose the graph is added to the template's corresponding featurelayer once the sketch is finished. Is this understanding right?&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;(3) listen to the "graphic-add" event and update the attribute information.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If I listen to the "before-apply-edits" event, how should I listen to this event based on my workflow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 13:36:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-quot-graphic-add-quot-event-is-not/m-p/333943#M30852</guid>
      <dc:creator>mikechen</dc:creator>
      <dc:date>2015-09-01T13:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer: "graphic-add" event is not fired consistently.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-quot-graphic-add-quot-event-is-not/m-p/333944#M30853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using the editor widget? Or are you using the template picker and draw toolbar on their own? If you are using the editor widget it will take care of adding the graphic to the feature layer for you and all you need to do is add logic to listen for on-before-apply-edits. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using the template picker and draw toolbar without the Editor widget then take a look at this sample. Note that the sample code listens for draw-end and then calls applyEdits to add the graphic to the Feature Layer. At this point in the code you can associate attribute information with the feature.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/ed_feature_creation.html" title="https://developers.arcgis.com/javascript/jssamples/ed_feature_creation.html"&gt;Edit without editor widget | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 16:11:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-quot-graphic-add-quot-event-is-not/m-p/333944#M30853</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2015-09-01T16:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer: "graphic-add" event is not fired consistently.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-quot-graphic-add-quot-event-is-not/m-p/333945#M30854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kelly, thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using TemplatePicker widget and Editor widget. I have figured out how to apply "before-apply-edits" event. But, the designated event listener is not fired at some cases, too. This problem is the same as "graphic-add" event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem happens after double-click to finish the sketch, if the progress bar on the Editor widget shows up, both event listeners will not be fired and the attached attributeInspector popup without any attribute updating. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the progress bar does not show up, both event listeners will be fired and the attached attributeInspector popup with the updated attribute information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the progress bar show up, it will take a while (in seconds) for the digitized sketch to show up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the event listeners are designed for their corresponding event, they should be fired no matter how long it takes for the edits to be applied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why the event listeners are not fired if the progress bar shows up. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 16:38:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-quot-graphic-add-quot-event-is-not/m-p/333945#M30854</guid>
      <dc:creator>mikechen</dc:creator>
      <dc:date>2015-09-01T16:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer: "graphic-add" event is not fired consistently.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-quot-graphic-add-quot-event-is-not/m-p/333946#M30855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 17:33:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-quot-graphic-add-quot-event-is-not/m-p/333946#M30855</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2015-09-01T17:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer: "graphic-add" event is not fired consistently.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-quot-graphic-add-quot-event-is-not/m-p/333947#M30856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As the code is very long. I just copy the segments that are for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code segment for templatePicker and Editor:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;templatePicker = new TemplatePicker(templateParam, "templateDiv");&lt;/P&gt;&lt;P&gt;templatePicker.startup();&lt;/P&gt;&lt;P&gt;templatePicker.on("selection-change", templateValidate);&lt;/P&gt;&lt;P&gt;templatePicker.clearSelection();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aEditor = new Editor(editor_params, 'editorDiv');&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The code segment to define the event listener.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;templateValidate : function(evt) {&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;selectedTemplate = this.getSelected();&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="line-height: 1.5;"&gt;LAYER_NAME = selectedTemplate.featureLayer.id;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if (LAYER_NAME == "myRdLayer" ) {&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;hdlrGrpAdded_rd = on("before-apply-edits",updateAttribute_rd);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The code segment of the event listener.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;updateAttribute_rd : function(evt){&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;var dt = convert_js_time_to_sqlserver( String(new Date()) );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;// check the edits is about adding, deleting, or updating&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;var bDelete = !($.isEmptyObject(evt.deletes));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;var bAdd = !($.isEmptyObject(evt.adds));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;var bUpdate = !($.isEmptyObject(evt.updates));&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;// end of check editing status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;var gg;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if (bAdd){&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;console.log("Before a road is created, update road info. Time: " + new Date());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;gg = evt.adds[0];&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;gg.attributes["LASTUPDATE"] = dt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;gg.attributes["LASTEDITOR"] = UserName;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;gg.attributes["STCOFIPS"]&amp;nbsp;&amp;nbsp; = CNTY_ID;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;gg.attributes["STATENAME"]&amp;nbsp; = StateName;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;gg.attributes["STATERIGHT"] = StateName;;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;gg.attributes["FROMLEFT"]&amp;nbsp;&amp;nbsp; = 1;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;gg.attributes["FROMRIGHT"]&amp;nbsp; = 2;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;gg.attributes["INWATER"]&amp;nbsp;&amp;nbsp;&amp;nbsp; = "No";&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;gg.attributes["ONEWAYDIR"]&amp;nbsp; = "From-To";&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;SAMS.srvlyrSams_roadCenterLn.applyEdits(&lt;SPAN style="background-color: #f6f6f6;"&gt;[gg], &lt;/SPAN&gt;null, null, EditNew_Success, error2);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if (bDelete){&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;console.log("Delete a road. Time: " + new Date());&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if (bUpdate){&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;console.log("Update a road. Time: " + new Date());&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 18:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-quot-graphic-add-quot-event-is-not/m-p/333947#M30856</guid>
      <dc:creator>mikechen</dc:creator>
      <dc:date>2015-09-01T18:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer: "graphic-add" event is not fired consistently.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-quot-graphic-add-quot-event-is-not/m-p/333948#M30857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kelly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that I found the situation that the event listener is not fired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, the targeted FeatureLayer is one layer of a FeatureServer. We have noticed that this FeatureServer is not running fast. Every pan of the map will take a while for the data on the FeatureServer to redraw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To increase the performance of the FeatureServer, we have set the scale dependence. This data will not be visible until the map is zoomed into about 4K. Basically, the FeatureServer data will be available at scale of 4k, 2k, 1K (the ESRI's universal scale for caching).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, the situation of not-firing the "before-apply-edits" or "graphic-add" event listener is like this: if the map is panned (intentionally or not) during the digitization, the data from the FeatureServer have to reload and the reloading is not fast for FeatureServer. This is the reason why the event listener is not fired. &lt;/P&gt;&lt;P&gt;If the map is not panned during the digitization, the designated event listener works well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, why do the map panning and/or FeatureServer data reloading cause the "graphic-add" and/or the "before-apply-edits" event listeners not working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 19:12:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-quot-graphic-add-quot-event-is-not/m-p/333948#M30857</guid>
      <dc:creator>mikechen</dc:creator>
      <dc:date>2015-09-01T19:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer: "graphic-add" event is not fired consistently.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-quot-graphic-add-quot-event-is-not/m-p/333949#M30858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I setup a test app here and can't reproduce. The before-apply-edits event fires even when I pan while creating a new feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsbin.com/tapolarimi/edit?html,css,js,output" title="http://jsbin.com/tapolarimi/edit?html,css,js,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What mode are your feature layer's in? Have you tried adding your editable layer as a dynamic map service and then add the feature layer in selection only mode? Details about that can be found in the "Selection only mode" section here: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jshelp/inside_feature_layers.html" title="https://developers.arcgis.com/javascript/jshelp/inside_feature_layers.html"&gt;Feature Layers | Guide | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 00:04:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-quot-graphic-add-quot-event-is-not/m-p/333949#M30858</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2015-09-02T00:04:26Z</dc:date>
    </item>
  </channel>
</rss>

