<?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 Does editor widget support create feature only? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-editor-widget-support-create-feature-only/m-p/77054#M6994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I successfully use "&lt;A href="https://developers.arcgis.com/javascript/jssamples/ed_simpletoolbar.html"&gt;Editor widget with simple toolbar&lt;/A&gt;" to create a polygon, which let me create feature, editing existing features' attribute and deleting the features. However, I would like to only allow the editor to create feature and edit it, which means editor is not allowed to edit existing or deleting features. Can I achieve this? I have modified some code but it returns me an error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TypeError {stack: (...), message: "Cannot read property '_init' of undefined"} "TypeError: Cannot read property '_init' of undefined&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at S._editHandler (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/js/esri/layers/FeatureLayer.js:81:21" rel="nofollow" target="_blank"&gt;http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/js/esri/layers/FeatureLayer.js:81:21&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Object.E.load (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/js/esri/layers/FeatureLayer.js:43:66" rel="nofollow" target="_blank"&gt;http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/js/esri/layers/FeatureLayer.js:43:66&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:635:478" rel="nofollow" target="_blank"&gt;http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:635:478&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at c (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:221" rel="nofollow" target="_blank"&gt;http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:221&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at d (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:10" rel="nofollow" target="_blank"&gt;http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:10&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at resolve.callback (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:80:350" rel="nofollow" target="_blank"&gt;http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:80:350&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at c (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:436" rel="nofollow" target="_blank"&gt;http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:436&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at d (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:10" rel="nofollow" target="_blank"&gt;http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:10&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at resolve.callback (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:80:350" rel="nofollow" target="_blank"&gt;http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:80:350&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at c (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:436" rel="nofollow" target="_blank"&gt;http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:436&lt;/A&gt;&lt;SPAN&gt;)" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refering to this &lt;A href="http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=ed_simpletoolbar"&gt;sandbox&lt;/A&gt;, the code is changed as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var waterbodies = new FeatureLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Hydrography/Watershed173811/FeatureServer/0" rel="nofollow" target="_blank"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Hydrography/Watershed173811/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;",{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode: FeatureLayer.SELECTION_NEW, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields: ['*']&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Oct 2014 02:57:07 GMT</pubDate>
    <dc:creator>StephenLam</dc:creator>
    <dc:date>2014-10-10T02:57:07Z</dc:date>
    <item>
      <title>Does editor widget support create feature only?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-editor-widget-support-create-feature-only/m-p/77054#M6994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I successfully use "&lt;A href="https://developers.arcgis.com/javascript/jssamples/ed_simpletoolbar.html"&gt;Editor widget with simple toolbar&lt;/A&gt;" to create a polygon, which let me create feature, editing existing features' attribute and deleting the features. However, I would like to only allow the editor to create feature and edit it, which means editor is not allowed to edit existing or deleting features. Can I achieve this? I have modified some code but it returns me an error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TypeError {stack: (...), message: "Cannot read property '_init' of undefined"} "TypeError: Cannot read property '_init' of undefined&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at S._editHandler (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/js/esri/layers/FeatureLayer.js:81:21" rel="nofollow" target="_blank"&gt;http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/js/esri/layers/FeatureLayer.js:81:21&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Object.E.load (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/js/esri/layers/FeatureLayer.js:43:66" rel="nofollow" target="_blank"&gt;http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/js/esri/layers/FeatureLayer.js:43:66&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:635:478" rel="nofollow" target="_blank"&gt;http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:635:478&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at c (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:221" rel="nofollow" target="_blank"&gt;http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:221&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at d (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:10" rel="nofollow" target="_blank"&gt;http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:10&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at resolve.callback (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:80:350" rel="nofollow" target="_blank"&gt;http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:80:350&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at c (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:436" rel="nofollow" target="_blank"&gt;http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:436&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at d (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:10" rel="nofollow" target="_blank"&gt;http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:10&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at resolve.callback (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:80:350" rel="nofollow" target="_blank"&gt;http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:80:350&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at c (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:436" rel="nofollow" target="_blank"&gt;http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:436&lt;/A&gt;&lt;SPAN&gt;)" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refering to this &lt;A href="http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=ed_simpletoolbar"&gt;sandbox&lt;/A&gt;, the code is changed as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var waterbodies = new FeatureLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Hydrography/Watershed173811/FeatureServer/0" rel="nofollow" target="_blank"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Hydrography/Watershed173811/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;",{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode: FeatureLayer.SELECTION_NEW, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields: ['*']&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 02:57:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-editor-widget-support-create-feature-only/m-p/77054#M6994</guid>
      <dc:creator>StephenLam</dc:creator>
      <dc:date>2014-10-10T02:57:07Z</dc:date>
    </item>
  </channel>
</rss>

