<?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: Apply edits in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654308#M60998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bharath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I only provided one line of code in my earlier post and this is it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;featureLayer.applyEdits(features, null, null);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Nov 2016 12:39:37 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-11-01T12:39:37Z</dc:date>
    <item>
      <title>Apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654300#M60990</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;can anyone give an example on how to apply edits while editing two layers in arcgis javasscript&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Oct 2016 06:14:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654300#M60990</guid>
      <dc:creator>bharathreddy</dc:creator>
      <dc:date>2016-10-23T06:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654301#M60991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bharath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You will have to apply the edits to each layer separately. You will have to have a FeatureService url for each and add a FeatureLayer to the map using that FeatureService url:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;featureLayer.applyEdits(features, null, null);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#applyedits" title="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#applyedits"&gt;FeatureLayer | API Reference | ArcGIS API for JavaScript 3.18 | ApplyEdits&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Oct 2016 19:26:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654301#M60991</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-10-23T19:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654302#M60992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the code snippet you can use. Create the separate variables for each feature layer. Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt; &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.18%2Fdijit%2Fthemes%2Fclaro%2Fclaro.css" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/3.18/dijit/themes/claro/claro.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.18%2Fesri%2Fcss%2Fesri.css" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/3.18/esri/css/esri.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;style&amp;gt;&lt;BR /&gt; html,body{height:100%;width:100%;margin:0;overflow:hidden;}&lt;BR /&gt; #map{&lt;BR /&gt; padding:0;&lt;BR /&gt; }&lt;BR /&gt; #header{&lt;BR /&gt; font-size: 1.1em;&lt;BR /&gt; font-family: sans-serif;&lt;BR /&gt; padding-left: 1em;&lt;BR /&gt; padding-top:4px;&lt;BR /&gt; color:#660000;&lt;BR /&gt; }&lt;BR /&gt; .templatePicker {&lt;BR /&gt; border: none;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;.dj_ie .infowindow .window .top .right .user .content { position: relative; }&lt;BR /&gt; .dj_ie .simpleInfoWindow .content { position: relative; }&lt;BR /&gt; &amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.18%2F" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/3.18/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;script&amp;gt;&lt;BR /&gt; var map;&lt;/P&gt;&lt;P&gt;require([&lt;BR /&gt; "esri/map",&lt;BR /&gt; "esri/tasks/GeometryService",&lt;/P&gt;&lt;P&gt;"esri/layers/ArcGISDynamicMapServiceLayer",&lt;BR /&gt; "esri/layers/FeatureLayer",&lt;/P&gt;&lt;P&gt;"esri/Color",&lt;BR /&gt; "esri/symbols/SimpleMarkerSymbol",&lt;BR /&gt; "esri/symbols/SimpleLineSymbol",&lt;/P&gt;&lt;P&gt;"esri/dijit/editing/Editor",&lt;BR /&gt; "esri/dijit/editing/TemplatePicker",&lt;/P&gt;&lt;P&gt;"esri/config",&lt;BR /&gt; "dojo/i18n!esri/nls/jsapi",&lt;/P&gt;&lt;P&gt;"dojo/_base/array", "dojo/parser", "dojo/keys",&lt;/P&gt;&lt;P&gt;"dijit/layout/BorderContainer", "dijit/layout/ContentPane",&lt;BR /&gt; "dojo/domReady!"&lt;BR /&gt; ], function(&lt;BR /&gt; Map, GeometryService,&lt;BR /&gt; ArcGISDynamicMapServiceLayer, FeatureLayer,&lt;BR /&gt; Color, SimpleMarkerSymbol, SimpleLineSymbol,&lt;BR /&gt; Editor, TemplatePicker,&lt;BR /&gt; esriConfig, jsapiBundle,&lt;BR /&gt; arrayUtils, parser, keys&lt;BR /&gt; ) {&lt;BR /&gt; parser.parse();&lt;/P&gt;&lt;P&gt;// snapping is enabled for this sample - change the tooltip to reflect this&lt;BR /&gt; jsapiBundle.toolbars.draw.start = jsapiBundle.toolbars.draw.start + "&amp;lt;br&amp;gt;Press &amp;lt;b&amp;gt;ALT&amp;lt;/b&amp;gt; to enable snapping";&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// refer to "Using the Proxy Page" for more information: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2F3%2Fjshelp%2Fags_proxy.html" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jshelp/ags_proxy.html&lt;/A&gt;&lt;BR /&gt; esriConfig.defaults.io.proxyUrl = "/proxy/";&lt;/P&gt;&lt;P&gt;//This service is for development and testing purposes only. We recommend that you create your own geometry service for use within your applications.&lt;BR /&gt;&lt;SPAN&gt; esriConfig.defaults.geometryService = new GeometryService("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Futility.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2FGeometry%2FGeometryServer" rel="nofollow" target="_blank"&gt;https://utility.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;map = new Map("map", {&lt;BR /&gt; basemap: "topo",&lt;BR /&gt; center: [-88.55, 43.12],&lt;BR /&gt; zoom: 9,&lt;BR /&gt; slider: false&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;map.on("layers-add-result", initEditor);&lt;/P&gt;&lt;P&gt;//add boundaries and place names&lt;BR /&gt; var labels = new ArcGISDynamicMapServiceLayer("Enter the URL of your Mapserver");&lt;BR /&gt; map.addLayer(labels);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; // If your features are points.&lt;BR /&gt; var responsePoints = new FeatureLayer("YourURL/FeatureServer/1", {&lt;BR /&gt; mode: FeatureLayer.MODE_ONDEMAND,&lt;BR /&gt; outFields: ['*']&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; //If your features are a polygon&lt;BR /&gt; var responsePolys = new FeatureLayer("YourURL/FeatureServer/5", {&lt;BR /&gt; mode: FeatureLayer.MODE_ONDEMAND,&lt;BR /&gt; outFields: ['*']&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;map.addLayers([responsePolys, responsePoints]);&lt;/P&gt;&lt;P&gt;function initEditor(evt) {&lt;BR /&gt; var templateLayers = arrayUtils.map(evt.layers, function(result){&lt;BR /&gt; return result.layer;&lt;BR /&gt; });&lt;BR /&gt; var templatePicker = new TemplatePicker({&lt;BR /&gt; featureLayers: templateLayers,&lt;BR /&gt; grouping: true,&lt;BR /&gt; rows: "auto",&lt;BR /&gt; columns: 3&lt;BR /&gt; }, "templateDiv");&lt;BR /&gt; templatePicker.startup();&lt;/P&gt;&lt;P&gt;var layers = arrayUtils.map(evt.layers, function(result) {&lt;BR /&gt; return { featureLayer: result.layer };&lt;BR /&gt; });&lt;BR /&gt; var settings = {&lt;BR /&gt; map: map,&lt;BR /&gt; templatePicker: templatePicker,&lt;BR /&gt; layerInfos: layers,&lt;BR /&gt; toolbarVisible: true,&lt;BR /&gt; createOptions: {&lt;BR /&gt; polylineDrawTools:[ Editor.CREATE_TOOL_FREEHAND_POLYLINE ],&lt;BR /&gt; polygonDrawTools: [ Editor.CREATE_TOOL_FREEHAND_POLYGON,&lt;BR /&gt; Editor.CREATE_TOOL_CIRCLE,&lt;BR /&gt; Editor.CREATE_TOOL_TRIANGLE,&lt;BR /&gt; Editor.CREATE_TOOL_RECTANGLE&lt;BR /&gt; ]&lt;BR /&gt; },&lt;BR /&gt; toolbarOptions: {&lt;BR /&gt; reshapeVisible: true&lt;BR /&gt; }&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;var params = { settings: settings };&lt;BR /&gt; var myEditor = new Editor(params, 'editorDiv');&lt;BR /&gt; //define snapping options&lt;BR /&gt; var symbol = new SimpleMarkerSymbol(&lt;BR /&gt; SimpleMarkerSymbol.STYLE_CROSS,&lt;BR /&gt; 15,&lt;BR /&gt; new SimpleLineSymbol(&lt;BR /&gt; SimpleLineSymbol.STYLE_SOLID,&lt;BR /&gt; new Color([255, 0, 0, 0.5]),&lt;BR /&gt; 5&lt;BR /&gt; ),&lt;BR /&gt; null&lt;BR /&gt; );&lt;BR /&gt; map.enableSnapping({&lt;BR /&gt; snapPointSymbol: symbol,&lt;BR /&gt; tolerance: 20,&lt;BR /&gt; snapKey: keys.ALT&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;myEditor.startup();&lt;BR /&gt; }&lt;BR /&gt; });&lt;BR /&gt; &amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body class="claro"&amp;gt;&lt;BR /&gt;&amp;lt;div id="main" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline'" style="width:100%;height:100%;"&amp;gt;&lt;BR /&gt; &amp;lt;div data-dojo-type="dijit/layout/ContentPane" id="header" data-dojo-props="region:'top'"&amp;gt;&lt;BR /&gt; Edit USAR Location and Study Area&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'left'" style="width: 300px;overflow:hidden;"&amp;gt;&lt;BR /&gt; &amp;lt;div id="templateDiv"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div id="editorDiv"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div data-dojo-type="dijit/layout/ContentPane" id="map" data-dojo-props="region:'center'"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Oct 2016 20:04:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654302#M60992</guid>
      <dc:creator>SarojThapa1</dc:creator>
      <dc:date>2016-10-23T20:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654303#M60993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can we do that without using template picker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 05:25:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654303#M60993</guid>
      <dc:creator>bharathreddy</dc:creator>
      <dc:date>2016-10-24T05:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654304#M60994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is also a sample from Javascript API&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=ed_feature_creation" title="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=ed_feature_creation"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 06:31:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654304#M60994</guid>
      <dc:creator>PanagiotisPapadopoulos</dc:creator>
      <dc:date>2016-10-24T06:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654305#M60995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello panagiotis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we do that withoust using templatepicker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 07:32:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654305#M60995</guid>
      <dc:creator>bharathreddy</dc:creator>
      <dc:date>2016-10-24T07:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654306#M60996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes the code and sample I provided does not use any template picker it is low level custom editing you have to do all the work in your code concerning setting attributes and geometries to the array of graphics and then use FeatureLayer.applyEdits.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 11:59:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654306#M60996</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-10-24T11:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654307#M60997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;I coudnt find ur code please post again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 07:12:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654307#M60997</guid>
      <dc:creator>bharathreddy</dc:creator>
      <dc:date>2016-11-01T07:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654308#M60998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bharath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I only provided one line of code in my earlier post and this is it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;featureLayer.applyEdits(features, null, null);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 12:39:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654308#M60998</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-11-01T12:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654309#M60999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Robert,&lt;/P&gt;&lt;P&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am unable to save the edits and add attributes.please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 11:02:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654309#M60999</guid>
      <dc:creator>bharathreddy</dc:creator>
      <dc:date>2016-11-15T11:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654310#M61000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Bharath,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;What code have you tried? What errors do you get in your browsers web console? Your replies are so vague that it is hard to provide help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 13:48:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654310#M61000</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-11-15T13:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654311#M61001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bharath,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you running your .html file from a localhost or from a file?The edits are usually not saved if they are just run from a file.What codes have you tried so far? Do you want only attribute editing or full editing (attributes + geometry)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 14:34:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654311#M61001</guid>
      <dc:creator>SarojThapa1</dc:creator>
      <dc:date>2016-11-15T14:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654312#M61002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my code im adding on click both point and line,i am able to add them but unable to apply edits to them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt; &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;&lt;BR /&gt; &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=7, IE=9, IE=10"&amp;gt;&lt;BR /&gt; &amp;lt;!--The viewport meta tag is used to improve the presentation and behavior of the samples &lt;BR /&gt; on iOS devices--&amp;gt;&lt;BR /&gt; &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;LT ext&amp;lt;/title&amp;gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fserverapi.arcgisonline.com%2Fjsapi%2Farcgis%2F3.5%2Fjs%2Fdojo%2Fdijit%2Fthemes%2Fclaro%2Fclaro.css" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/js/dojo/dijit/themes/claro/claro.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fserverapi.arcgisonline.com%2Fjsapi%2Farcgis%2F3.5%2Fjs%2Fesri%2Fcss%2Fesri.css" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/js/esri/css/esri.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;style&amp;gt;&lt;BR /&gt; html, body&lt;BR /&gt; {&lt;BR /&gt; height: 100%;&lt;BR /&gt; width: 100%;&lt;BR /&gt; margin: 0;&lt;BR /&gt; padding: 0;&lt;BR /&gt; overflow: hidden;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; .btn&lt;BR /&gt; {&lt;BR /&gt; background: #3f3f3f;&lt;BR /&gt; color: #fff;&lt;BR /&gt; font-family: Tahoma;&lt;BR /&gt; font-size: 11px;&lt;BR /&gt; height: 18px;&lt;BR /&gt; }&lt;BR /&gt; .lbl&lt;BR /&gt; {&lt;BR /&gt; color: #000;&lt;BR /&gt; font-family: Tahoma;&lt;BR /&gt; font-size: 11px;&lt;BR /&gt; font-weight: 200;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; #header&lt;BR /&gt; {&lt;BR /&gt; border: solid 1px #e4e4e4;&lt;BR /&gt; background: #fff;&lt;BR /&gt; color: #749749;&lt;BR /&gt; -moz-border-radius: 4em;&lt;BR /&gt; border-radius: 4em;&lt;BR /&gt; font-size: 14px;&lt;BR /&gt; padding-left: 20px;&lt;BR /&gt; font-weight: 700;&lt;BR /&gt; }&lt;BR /&gt; #map&lt;BR /&gt; {&lt;BR /&gt; padding: 1px;&lt;BR /&gt; border: solid 1px #e4e4e4;&lt;BR /&gt; -moz-border-radius: 4px;&lt;BR /&gt; border-radius: 4px;&lt;BR /&gt; }&lt;BR /&gt; #rightPane&lt;BR /&gt; {&lt;BR /&gt; border: none;&lt;BR /&gt; width: 250px;&lt;BR /&gt; height: 95%;&lt;BR /&gt; padding-bottom: 10px;&lt;BR /&gt; top: 20px;&lt;BR /&gt; border: solid 1px #e4e4e4;&lt;BR /&gt; }&lt;BR /&gt; .templatePicker&lt;BR /&gt; {&lt;BR /&gt; border: solid 2px #e4e4e4 !important;&lt;BR /&gt; }&lt;BR /&gt; &amp;lt;/style&amp;gt;&lt;BR /&gt; &amp;lt;script&amp;gt; var dojoConfig = { parseOnLoad: true };&amp;lt;/script&amp;gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fserverapi.arcgisonline.com%2Fjsapi%2Farcgis%2F3.5%2F" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;script&amp;gt;&lt;BR /&gt; dojo.require("dijit.layout.BorderContainer");&lt;BR /&gt; dojo.require("dijit.layout.ContentPane");&lt;BR /&gt; dojo.require("esri.map");&lt;BR /&gt; dojo.require("esri.dijit.editing.TemplatePicker-all");&lt;BR /&gt; dojo.require("esri.tasks.query");&lt;BR /&gt; dojo.require("esri.toolbars.draw");&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var map, line, lineGraphic, toolbar, symbol, geomTask;&lt;BR /&gt; var landuseLineLayer;&lt;BR /&gt; var landusePointLayer;&lt;/P&gt;&lt;P&gt;function init() {&lt;BR /&gt; //This sample requires a proxy page to handle communications with the ArcGIS Server services. You will need to &lt;BR /&gt; //replace the url below with the location of a proxy on your machine. See the 'Using the proxy page' help topic &lt;BR /&gt; //for details on setting up a proxy page.&lt;BR /&gt; esri.config.defaults.io.proxyUrl = "/proxy";&lt;BR /&gt; esri.config.defaults.io.alwaysUseProxy = false;&lt;/P&gt;&lt;P&gt;//This service is for development and testing purposes only. We recommend that you create your own geometry service for use within your applications. &lt;BR /&gt;&lt;SPAN&gt; esri.config.defaults.geometryService = new esri.tasks.GeometryService("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Ftasks.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2FGeometry%2FGeometryServer" rel="nofollow" target="_blank"&gt;http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;map = new esri.Map("map", {&lt;/P&gt;&lt;P&gt;center: [-83.244, 42.581],&lt;BR /&gt; zoom: 15&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; dojo.connect(map, "onLayersAddResult", initEditing);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;queryTask = new esri.tasks.QueryTask("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080%2Farcgis%2Frest%2Fservices%2Fedit%2FMapServer%2F20" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/edit/MapServer/20&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;// //initialize query&lt;BR /&gt; query = new esri.tasks.Query();&lt;BR /&gt; query.returnGeometry = true;&lt;BR /&gt; query.outFields = ["LTP_ID", "OBJECTID"];&lt;/P&gt;&lt;P&gt;// //create symbol for selected features&lt;BR /&gt; symbol = new esri.symbol.SimpleMarkerSymbol();&lt;BR /&gt; symbol.setStyle(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE);&lt;BR /&gt; symbol.setSize(10);&lt;BR /&gt; //symbol.setColor(new esri.Color([255, 255, 0, 0.5]));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt; var labels = new esri.layers.ArcGISDynamicMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080%2Farcgis%2Frest%2Fservices%2Fedit%2FMapServer" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/edit/MapServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;BR /&gt; map.addLayer(labels);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt; landusePointLayer = new esri.layers.FeatureLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080%2Farcgis%2Frest%2Fservices%2Fedit%2FFeatureServer%2F20" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/edit/FeatureServer/20&lt;/A&gt;&lt;SPAN&gt;", {&lt;/SPAN&gt;&lt;BR /&gt; mode: esri.layers.FeatureLayer.MODE_SNAPSHOT,&lt;BR /&gt; outFields: ["*"]&lt;BR /&gt; });&lt;BR /&gt;&lt;SPAN&gt; landuseLineLayer = new esri.layers.FeatureLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080%2Farcgis%2Frest%2Fservices%2Fedit%2FFeatureServer%2F34" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/edit/FeatureServer/34&lt;/A&gt;&lt;SPAN&gt;", {&lt;/SPAN&gt;&lt;BR /&gt; mode: esri.layers.FeatureLayer.MODE_SNAPSHOT,&lt;BR /&gt; outFields: ["*"]&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; map.addLayers([landusePointLayer, landuseLineLayer]);&lt;BR /&gt; var ltline = landuseLineLayer;&lt;BR /&gt; var ltpole = landuseLineLayer;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; dojo.connect(map, "onLoad", function () {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; dojo.connect(dijit.byId("map"), "resize", map, map.resize);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;});&lt;BR /&gt; }&lt;BR /&gt; var selectedTemplate;&lt;BR /&gt; function LTEXT() {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//var l = landuseLineLayer;&lt;/P&gt;&lt;P&gt;var p1 = new esri.geometry.Point(218103.84229999967, 1172648.3827999998, map.spatialReference);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; line = new esri.geometry.Polyline();&lt;BR /&gt; line.addPath([p1]);&lt;/P&gt;&lt;P&gt;dojo.connect(map, "onClick", addPt);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function addPt(e) {&lt;BR /&gt; debugger;&lt;BR /&gt; var selectedTemplate;&lt;BR /&gt; var featureLayers;&lt;BR /&gt; var geometryType;&lt;BR /&gt; debugger;&lt;/P&gt;&lt;P&gt;// create a new path using the current line endpoint and the click point&lt;BR /&gt; //var p2 = esri.geometry.geographicToWebMercator(new esri.geometry.Point(e.mapPoint.x, e.mapPoint.y, map.spatialReference));&lt;BR /&gt; //line.addPath([p2]);&lt;BR /&gt; var pathCount = line.paths.length;&lt;BR /&gt; line.addPath([line.paths[pathCount - 1][line.paths[pathCount - 1].length - 1], [e.mapPoint.x, e.mapPoint.y]]);&lt;BR /&gt; lineGraphic = map.graphics.add(new esri.Graphic(line, new esri.symbol.SimpleLineSymbol()));&lt;BR /&gt; map.graphics.add(new esri.Graphic(e.mapPoint, new esri.symbol.SimpleMarkerSymbol()));&lt;BR /&gt; var k = landuseLineLayer;&lt;BR /&gt; var p = landusePointLayer;&lt;BR /&gt; saveedits(lineGraphic, landuseLineLayer, landusePointLayer)&lt;BR /&gt; //lineGraphic.setGeometry(line);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; /////////////////////////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;function saveedits(linegraphic, landuseLineLayer, landusePointLayer) {&lt;BR /&gt; debugger;&lt;BR /&gt; var graphic;&lt;BR /&gt; &lt;BR /&gt; //graphic.setAttributes(attrs);&lt;BR /&gt; var newGraphic = new esri.Graphic(lineGraphic, null);&lt;BR /&gt; landuseLineLayer.applyEdits([newGraphic], null, null);&lt;BR /&gt;// var newGraphic1 = new esri.Graphic1(e.mapPoint, null,null);&lt;BR /&gt;// landusePointLayer.applyEdits([newGraphic1], null,null);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;function initEditing(results) {&lt;BR /&gt; debugger;&lt;/P&gt;&lt;P&gt;var map = this;&lt;BR /&gt; var currentLayer = null;&lt;BR /&gt; var layers = dojo.map(results, function (result) {&lt;BR /&gt; return result.layer;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var editToolbar = new esri.toolbars.Edit(map);&lt;BR /&gt; dojo.connect(editToolbar, "onDeactivate", function (tool, graphic) {&lt;BR /&gt; currentLayer.applyEdits(null, [graphic], null);&lt;/P&gt;&lt;P&gt;});&lt;BR /&gt; featureLayers: layers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; dojo.connect(drawToolbar, "onDrawEnd", function (geometry) {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; debugger;&lt;BR /&gt; drawToolbar.deactivate();&lt;BR /&gt; editToolbar.deactivate();&lt;BR /&gt; var newAttributes = dojo.mixin({}, selectedTemplate.template.prototype.attributes);&lt;BR /&gt; var newGraphic = new esri.Graphic(geometry, null, newAttributes);&lt;BR /&gt; selectedTemplate.featureLayer.applyEdits([newGraphic], null, null);&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;function executeQueryTask(sTownID) {&lt;BR /&gt; debugger;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; query.where = "LTP_ID ='" + sTownID + "'";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; //execute query&lt;BR /&gt; queryTask.execute(query, showResults);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;function showResults(featureSet) {&lt;BR /&gt; debugger;&lt;/P&gt;&lt;P&gt;//remove all graphics on the maps graphics layer&lt;BR /&gt; map.graphics.clear();&lt;/P&gt;&lt;P&gt;//Performance enhancer - assign featureSet array to a single variable.&lt;BR /&gt; var resultFeatures = featureSet.features;&lt;BR /&gt; console.log(resultFeatures);&lt;/P&gt;&lt;P&gt;//Loop through each feature returned&lt;BR /&gt; for (var i = 0, il = resultFeatures.length; i &amp;lt; il; i++) {&lt;BR /&gt; //Get the current feature from the featureSet.&lt;BR /&gt; //Feature is a graphic&lt;BR /&gt; var graphic = resultFeatures&lt;I&gt;;&lt;BR /&gt; graphic.setSymbol(symbol);&lt;/I&gt;&lt;/P&gt;&lt;P&gt;//Set the infoTemplate.&lt;BR /&gt; //graphic.setInfoTemplate(infoTemplate);&lt;/P&gt;&lt;P&gt;//Add graphic to the map graphics layer. &lt;BR /&gt; map.graphics.add(graphic);&lt;BR /&gt; if (graphic.geometry.type === 'point') {&lt;BR /&gt; debugger;&lt;/P&gt;&lt;P&gt;map.centerAndZoom(graphic.geometry, 0.001);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; dojo.ready(init);&lt;BR /&gt; &amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body class="claro"&amp;gt;&lt;BR /&gt; &amp;lt;div style="height: 30px; border: solid 1px; border-color: #e4e4e4; width: 100%;&lt;BR /&gt; background: #f0ebff"&amp;gt;&lt;BR /&gt; Header&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div style="height: 25px; border: solid 1px; border-color: #e4e4e4; width: 100%;&lt;BR /&gt; background: #d2d2d2; text-align: center"&amp;gt;&lt;BR /&gt; ToolBar&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="gutters:true, design:'sidebar'"&lt;BR /&gt; style="width: 100%; height: 100%;"&amp;gt;&lt;BR /&gt; &amp;lt;div id="map" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'center'"&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div id="rightPane" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'right'"&amp;gt;&lt;BR /&gt; &amp;lt;span class="lbl"&amp;gt;Enter Value :&amp;lt;/span&amp;gt;&lt;BR /&gt; &amp;lt;input type="text" id="pop" style="width: 150px;" /&amp;gt;&lt;BR /&gt; &amp;lt;input type="button" value="Zoom" onclick="executeQueryTask(dojo.byId('pop').value);"&lt;BR /&gt; class="btn" /&amp;gt;&lt;BR /&gt; &amp;lt;div id="templatePickerDiv1"&amp;gt;&lt;BR /&gt; &amp;lt;input type="button" id="templatePickerDiv" value="Start LT Ext" onclick="LTEXT()"&lt;BR /&gt; class="btn" /&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 06:02:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654312#M61002</guid>
      <dc:creator>bharathreddy</dc:creator>
      <dc:date>2016-11-16T06:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654313#M61003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying full editng here is my code.i am able to add point and line on click but unable to save them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt; &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;&lt;BR /&gt; &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=7, IE=9, IE=10"&amp;gt;&lt;BR /&gt; &amp;lt;!--The viewport meta tag is used to improve the presentation and behavior of the samples &lt;BR /&gt; on iOS devices--&amp;gt;&lt;BR /&gt; &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;LT ext&amp;lt;/title&amp;gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fserverapi.arcgisonline.com%2Fjsapi%2Farcgis%2F3.5%2Fjs%2Fdojo%2Fdijit%2Fthemes%2Fclaro%2Fclaro.css" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/js/dojo/dijit/themes/claro/claro.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fserverapi.arcgisonline.com%2Fjsapi%2Farcgis%2F3.5%2Fjs%2Fesri%2Fcss%2Fesri.css" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/js/esri/css/esri.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;style&amp;gt;&lt;BR /&gt; html, body&lt;BR /&gt; {&lt;BR /&gt; height: 100%;&lt;BR /&gt; width: 100%;&lt;BR /&gt; margin: 0;&lt;BR /&gt; padding: 0;&lt;BR /&gt; overflow: hidden;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; .btn&lt;BR /&gt; {&lt;BR /&gt; background: #3f3f3f;&lt;BR /&gt; color: #fff;&lt;BR /&gt; font-family: Tahoma;&lt;BR /&gt; font-size: 11px;&lt;BR /&gt; height: 18px;&lt;BR /&gt; }&lt;BR /&gt; .lbl&lt;BR /&gt; {&lt;BR /&gt; color: #000;&lt;BR /&gt; font-family: Tahoma;&lt;BR /&gt; font-size: 11px;&lt;BR /&gt; font-weight: 200;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; #header&lt;BR /&gt; {&lt;BR /&gt; border: solid 1px #e4e4e4;&lt;BR /&gt; background: #fff;&lt;BR /&gt; color: #749749;&lt;BR /&gt; -moz-border-radius: 4em;&lt;BR /&gt; border-radius: 4em;&lt;BR /&gt; font-size: 14px;&lt;BR /&gt; padding-left: 20px;&lt;BR /&gt; font-weight: 700;&lt;BR /&gt; }&lt;BR /&gt; #map&lt;BR /&gt; {&lt;BR /&gt; padding: 1px;&lt;BR /&gt; border: solid 1px #e4e4e4;&lt;BR /&gt; -moz-border-radius: 4px;&lt;BR /&gt; border-radius: 4px;&lt;BR /&gt; }&lt;BR /&gt; #rightPane&lt;BR /&gt; {&lt;BR /&gt; border: none;&lt;BR /&gt; width: 250px;&lt;BR /&gt; height: 95%;&lt;BR /&gt; padding-bottom: 10px;&lt;BR /&gt; top: 20px;&lt;BR /&gt; border: solid 1px #e4e4e4;&lt;BR /&gt; }&lt;BR /&gt; .templatePicker&lt;BR /&gt; {&lt;BR /&gt; border: solid 2px #e4e4e4 !important;&lt;BR /&gt; }&lt;BR /&gt; &amp;lt;/style&amp;gt;&lt;BR /&gt; &amp;lt;script&amp;gt; var dojoConfig = { parseOnLoad: true };&amp;lt;/script&amp;gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fserverapi.arcgisonline.com%2Fjsapi%2Farcgis%2F3.5%2F" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;script&amp;gt;&lt;BR /&gt; dojo.require("dijit.layout.BorderContainer");&lt;BR /&gt; dojo.require("dijit.layout.ContentPane");&lt;BR /&gt; dojo.require("esri.map");&lt;BR /&gt; dojo.require("esri.dijit.editing.TemplatePicker-all");&lt;BR /&gt; dojo.require("esri.tasks.query");&lt;BR /&gt; dojo.require("esri.toolbars.draw");&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var map, line, lineGraphic, toolbar, symbol, geomTask;&lt;BR /&gt; var landuseLineLayer;&lt;BR /&gt; var landusePointLayer;&lt;/P&gt;&lt;P&gt;function init() {&lt;BR /&gt; //This sample requires a proxy page to handle communications with the ArcGIS Server services. You will need to &lt;BR /&gt; //replace the url below with the location of a proxy on your machine. See the 'Using the proxy page' help topic &lt;BR /&gt; //for details on setting up a proxy page.&lt;BR /&gt; esri.config.defaults.io.proxyUrl = "/proxy";&lt;BR /&gt; esri.config.defaults.io.alwaysUseProxy = false;&lt;/P&gt;&lt;P&gt;//This service is for development and testing purposes only. We recommend that you create your own geometry service for use within your applications. &lt;BR /&gt;&lt;SPAN&gt; esri.config.defaults.geometryService = new esri.tasks.GeometryService("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Ftasks.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2FGeometry%2FGeometryServer" rel="nofollow" target="_blank"&gt;http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;map = new esri.Map("map", {&lt;/P&gt;&lt;P&gt;center: [-83.244, 42.581],&lt;BR /&gt; zoom: 15&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; dojo.connect(map, "onLayersAddResult", initEditing);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;queryTask = new esri.tasks.QueryTask("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080%2Farcgis%2Frest%2Fservices%2Fedit%2FMapServer%2F20" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/edit/MapServer/20&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;// //initialize query&lt;BR /&gt; query = new esri.tasks.Query();&lt;BR /&gt; query.returnGeometry = true;&lt;BR /&gt; query.outFields = ["LTP_ID", "OBJECTID"];&lt;/P&gt;&lt;P&gt;// //create symbol for selected features&lt;BR /&gt; symbol = new esri.symbol.SimpleMarkerSymbol();&lt;BR /&gt; symbol.setStyle(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE);&lt;BR /&gt; symbol.setSize(10);&lt;BR /&gt; //symbol.setColor(new esri.Color([255, 255, 0, 0.5]));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt; var labels = new esri.layers.ArcGISDynamicMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080%2Farcgis%2Frest%2Fservices%2Fedit%2FMapServer" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/edit/MapServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;BR /&gt; map.addLayer(labels);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt; landusePointLayer = new esri.layers.FeatureLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080%2Farcgis%2Frest%2Fservices%2Fedit%2FFeatureServer%2F20" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/edit/FeatureServer/20&lt;/A&gt;&lt;SPAN&gt;", {&lt;/SPAN&gt;&lt;BR /&gt; mode: esri.layers.FeatureLayer.MODE_SNAPSHOT,&lt;BR /&gt; outFields: ["*"]&lt;BR /&gt; });&lt;BR /&gt;&lt;SPAN&gt; landuseLineLayer = new esri.layers.FeatureLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080%2Farcgis%2Frest%2Fservices%2Fedit%2FFeatureServer%2F34" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/edit/FeatureServer/34&lt;/A&gt;&lt;SPAN&gt;", {&lt;/SPAN&gt;&lt;BR /&gt; mode: esri.layers.FeatureLayer.MODE_SNAPSHOT,&lt;BR /&gt; outFields: ["*"]&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; map.addLayers([landusePointLayer, landuseLineLayer]);&lt;BR /&gt; var ltline = landuseLineLayer;&lt;BR /&gt; var ltpole = landuseLineLayer;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; dojo.connect(map, "onLoad", function () {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; dojo.connect(dijit.byId("map"), "resize", map, map.resize);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;});&lt;BR /&gt; }&lt;BR /&gt; var selectedTemplate;&lt;BR /&gt; function LTEXT() {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//var l = landuseLineLayer;&lt;/P&gt;&lt;P&gt;var p1 = new esri.geometry.Point(218103.84229999967, 1172648.3827999998, map.spatialReference);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; line = new esri.geometry.Polyline();&lt;BR /&gt; line.addPath([p1]);&lt;/P&gt;&lt;P&gt;dojo.connect(map, "onClick", addPt);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function addPt(e) {&lt;BR /&gt; debugger;&lt;BR /&gt; var selectedTemplate;&lt;BR /&gt; var featureLayers;&lt;BR /&gt; var geometryType;&lt;BR /&gt; debugger;&lt;/P&gt;&lt;P&gt;// create a new path using the current line endpoint and the click point&lt;BR /&gt; //var p2 = esri.geometry.geographicToWebMercator(new esri.geometry.Point(e.mapPoint.x, e.mapPoint.y, map.spatialReference));&lt;BR /&gt; //line.addPath([p2]);&lt;BR /&gt; var pathCount = line.paths.length;&lt;BR /&gt; line.addPath([line.paths[pathCount - 1][line.paths[pathCount - 1].length - 1], [e.mapPoint.x, e.mapPoint.y]]);&lt;BR /&gt; lineGraphic = map.graphics.add(new esri.Graphic(line, new esri.symbol.SimpleLineSymbol()));&lt;BR /&gt; map.graphics.add(new esri.Graphic(e.mapPoint, new esri.symbol.SimpleMarkerSymbol()));&lt;BR /&gt; var k = landuseLineLayer;&lt;BR /&gt; var p = landusePointLayer;&lt;BR /&gt; saveedits(lineGraphic, landuseLineLayer, landusePointLayer)&lt;BR /&gt; //lineGraphic.setGeometry(line);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; /////////////////////////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;function saveedits(linegraphic, landuseLineLayer, landusePointLayer) {&lt;BR /&gt; debugger;&lt;BR /&gt; var graphic;&lt;BR /&gt; &lt;BR /&gt; //graphic.setAttributes(attrs);&lt;BR /&gt; var newGraphic = new esri.Graphic(lineGraphic, null);&lt;BR /&gt; landuseLineLayer.applyEdits([newGraphic], null, null);&lt;BR /&gt;// var newGraphic1 = new esri.Graphic1(e.mapPoint, null,null);&lt;BR /&gt;// landusePointLayer.applyEdits([newGraphic1], null,null);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;function initEditing(results) {&lt;BR /&gt; debugger;&lt;/P&gt;&lt;P&gt;var map = this;&lt;BR /&gt; var currentLayer = null;&lt;BR /&gt; var layers = dojo.map(results, function (result) {&lt;BR /&gt; return result.layer;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var editToolbar = new esri.toolbars.Edit(map);&lt;BR /&gt; dojo.connect(editToolbar, "onDeactivate", function (tool, graphic) {&lt;BR /&gt; currentLayer.applyEdits(null, [graphic], null);&lt;/P&gt;&lt;P&gt;});&lt;BR /&gt; featureLayers: layers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; dojo.connect(drawToolbar, "onDrawEnd", function (geometry) {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; debugger;&lt;BR /&gt; drawToolbar.deactivate();&lt;BR /&gt; editToolbar.deactivate();&lt;BR /&gt; var newAttributes = dojo.mixin({}, selectedTemplate.template.prototype.attributes);&lt;BR /&gt; var newGraphic = new esri.Graphic(geometry, null, newAttributes);&lt;BR /&gt; selectedTemplate.featureLayer.applyEdits([newGraphic], null, null);&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;function executeQueryTask(sTownID) {&lt;BR /&gt; debugger;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; query.where = "LTP_ID ='" + sTownID + "'";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; //execute query&lt;BR /&gt; queryTask.execute(query, showResults);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;function showResults(featureSet) {&lt;BR /&gt; debugger;&lt;/P&gt;&lt;P&gt;//remove all graphics on the maps graphics layer&lt;BR /&gt; map.graphics.clear();&lt;/P&gt;&lt;P&gt;//Performance enhancer - assign featureSet array to a single variable.&lt;BR /&gt; var resultFeatures = featureSet.features;&lt;BR /&gt; console.log(resultFeatures);&lt;/P&gt;&lt;P&gt;//Loop through each feature returned&lt;BR /&gt; for (var i = 0, il = resultFeatures.length; i &amp;lt; il; i++) {&lt;BR /&gt; //Get the current feature from the featureSet.&lt;BR /&gt; //Feature is a graphic&lt;BR /&gt; var graphic = resultFeatures&lt;I&gt;;&lt;BR /&gt; graphic.setSymbol(symbol);&lt;/I&gt;&lt;/P&gt;&lt;P&gt;//Set the infoTemplate.&lt;BR /&gt; //graphic.setInfoTemplate(infoTemplate);&lt;/P&gt;&lt;P&gt;//Add graphic to the map graphics layer. &lt;BR /&gt; map.graphics.add(graphic);&lt;BR /&gt; if (graphic.geometry.type === 'point') {&lt;BR /&gt; debugger;&lt;/P&gt;&lt;P&gt;map.centerAndZoom(graphic.geometry, 0.001);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; dojo.ready(init);&lt;BR /&gt; &amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body class="claro"&amp;gt;&lt;BR /&gt; &amp;lt;div style="height: 30px; border: solid 1px; border-color: #e4e4e4; width: 100%;&lt;BR /&gt; background: #f0ebff"&amp;gt;&lt;BR /&gt; Header&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div style="height: 25px; border: solid 1px; border-color: #e4e4e4; width: 100%;&lt;BR /&gt; background: #d2d2d2; text-align: center"&amp;gt;&lt;BR /&gt; ToolBar&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="gutters:true, design:'sidebar'"&lt;BR /&gt; style="width: 100%; height: 100%;"&amp;gt;&lt;BR /&gt; &amp;lt;div id="map" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'center'"&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div id="rightPane" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'right'"&amp;gt;&lt;BR /&gt; &amp;lt;span class="lbl"&amp;gt;Enter Value :&amp;lt;/span&amp;gt;&lt;BR /&gt; &amp;lt;input type="text" id="pop" style="width: 150px;" /&amp;gt;&lt;BR /&gt; &amp;lt;input type="button" value="Zoom" onclick="executeQueryTask(dojo.byId('pop').value);"&lt;BR /&gt; class="btn" /&amp;gt;&lt;BR /&gt; &amp;lt;div id="templatePickerDiv1"&amp;gt;&lt;BR /&gt; &amp;lt;input type="button" id="templatePickerDiv" value="Start LT Ext" onclick="LTEXT()"&lt;BR /&gt; class="btn" /&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 06:04:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654313#M61003</guid>
      <dc:creator>bharathreddy</dc:creator>
      <dc:date>2016-11-16T06:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654314#M61004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;while applying edits i am getting following error &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;TypeError: Cannot read property '_getInfo' of undefined&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 06:41:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654314#M61004</guid>
      <dc:creator>bharathreddy</dc:creator>
      <dc:date>2016-11-16T06:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654315#M61005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bharath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In your code you use:&amp;nbsp;selectedTemplate.template.prototype.attributes but I never see where you define what&amp;nbsp;selectedTemplate is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 14:53:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654315#M61005</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-11-16T14:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654316#M61006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Selected template is their in the code which i have posted but im not using that part &amp;nbsp;im tring to apply edits for line feature here is the modified code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;&lt;BR /&gt;&amp;lt;meta http-equiv="X-UA-Compatible" content="IE=7, IE=9, IE=10"&amp;gt;&lt;BR /&gt;&amp;lt;!--The viewport meta tag is used to improve the presentation and behavior of the samples &lt;BR /&gt;on iOS devices--&amp;gt;&lt;BR /&gt;&amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;LT ext&amp;lt;/title&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fserverapi.arcgisonline.com%2Fjsapi%2Farcgis%2F3.5%2Fjs%2Fdojo%2Fdijit%2Fthemes%2Fclaro%2Fclaro.css" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/js/dojo/dijit/themes/claro/claro.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fserverapi.arcgisonline.com%2Fjsapi%2Farcgis%2F3.5%2Fjs%2Fesri%2Fcss%2Fesri.css" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/js/esri/css/esri.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;html, body&lt;BR /&gt;{&lt;BR /&gt;height: 100%;&lt;BR /&gt;width: 100%;&lt;BR /&gt;margin: 0;&lt;BR /&gt;padding: 0;&lt;BR /&gt;overflow: hidden;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.btn&lt;BR /&gt;{&lt;BR /&gt;background: #3f3f3f;&lt;BR /&gt;color: #fff;&lt;BR /&gt;font-family: Tahoma;&lt;BR /&gt;font-size: 11px;&lt;BR /&gt;height: 18px;&lt;BR /&gt;}&lt;BR /&gt;.lbl&lt;BR /&gt;{&lt;BR /&gt;color: #000;&lt;BR /&gt;font-family: Tahoma;&lt;BR /&gt;font-size: 11px;&lt;BR /&gt;font-weight: 200;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;#header&lt;BR /&gt;{&lt;BR /&gt;border: solid 1px #e4e4e4;&lt;BR /&gt;background: #fff;&lt;BR /&gt;color: #749749;&lt;BR /&gt;-moz-border-radius: 4em;&lt;BR /&gt;border-radius: 4em;&lt;BR /&gt;font-size: 14px;&lt;BR /&gt;padding-left: 20px;&lt;BR /&gt;font-weight: 700;&lt;BR /&gt;}&lt;BR /&gt;#map&lt;BR /&gt;{&lt;BR /&gt;padding: 1px;&lt;BR /&gt;border: solid 1px #e4e4e4;&lt;BR /&gt;-moz-border-radius: 4px;&lt;BR /&gt;border-radius: 4px;&lt;BR /&gt;}&lt;BR /&gt;#rightPane&lt;BR /&gt;{&lt;BR /&gt;border: none;&lt;BR /&gt;width: 250px;&lt;BR /&gt;height: 95%;&lt;BR /&gt;padding-bottom: 10px;&lt;BR /&gt;top: 20px;&lt;BR /&gt;border: solid 1px #e4e4e4;&lt;BR /&gt;}&lt;BR /&gt;.templatePicker&lt;BR /&gt;{&lt;BR /&gt;border: solid 2px #e4e4e4 !important;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt; var dojoConfig = { parseOnLoad: true };&amp;lt;/script&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fserverapi.arcgisonline.com%2Fjsapi%2Farcgis%2F3.5%2F" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;dojo.require("dijit.layout.BorderContainer");&lt;BR /&gt;dojo.require("dijit.layout.ContentPane");&lt;BR /&gt;dojo.require("esri.map");&lt;BR /&gt;dojo.require("esri.dijit.editing.TemplatePicker-all");&lt;BR /&gt;dojo.require("esri.tasks.query");&lt;BR /&gt;dojo.require("esri.toolbars.draw");&lt;/P&gt;&lt;P&gt;var map, line, lineGraphic, toolbar, symbol, geomTask;&lt;BR /&gt;var landuseLineLayer;&lt;BR /&gt;var landusePointLayer;&lt;BR /&gt;function init() {&lt;BR /&gt;//This sample requires a proxy page to handle communications with the ArcGIS Server services. You will need to &lt;BR /&gt;//replace the url below with the location of a proxy on your machine. See the 'Using the proxy page' help topic &lt;BR /&gt;//for details on setting up a proxy page.&lt;BR /&gt;esri.config.defaults.io.proxyUrl = "/proxy";&lt;BR /&gt;esri.config.defaults.io.alwaysUseProxy = false;&lt;BR /&gt;//This service is for development and testing purposes only. We recommend that you create your own geometry service for use within your applications. &lt;BR /&gt;&lt;SPAN&gt;esri.config.defaults.geometryService = new esri.tasks.GeometryService("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Ftasks.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2FGeometry%2FGeometryServer" rel="nofollow" target="_blank"&gt;http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;BR /&gt;map = new esri.Map("map", {&lt;BR /&gt;center: [-83.244, 42.581],&lt;BR /&gt;zoom: 15&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;dojo.connect(map, "onLayersAddResult", initEditing);&lt;BR /&gt;&lt;SPAN&gt;queryTask = new esri.tasks.QueryTask("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080%2Farcgis%2Frest%2Fservices%2Fedit%2FMapServer%2F20" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/edit/MapServer/20&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;BR /&gt;// //initialize query&lt;BR /&gt;query = new esri.tasks.Query();&lt;BR /&gt;query.returnGeometry = true;&lt;BR /&gt;query.outFields = ["LTP_ID", "OBJECTID"];&lt;BR /&gt;// //create symbol for selected features&lt;BR /&gt;symbol = new esri.symbol.SimpleMarkerSymbol();&lt;BR /&gt;symbol.setStyle(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE);&lt;BR /&gt;symbol.setSize(10);&lt;BR /&gt;//symbol.setColor(new esri.Color([255, 255, 0, 0.5]));&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var labels = new esri.layers.ArcGISDynamicMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080%2Farcgis%2Frest%2Fservices%2Fedit%2FMapServer" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/edit/MapServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;BR /&gt;map.addLayer(labels);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;landusePointLayer = new esri.layers.FeatureLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080%2Farcgis%2Frest%2Fservices%2Fedit%2FFeatureServer%2F20" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/edit/FeatureServer/20&lt;/A&gt;&lt;SPAN&gt;", {&lt;/SPAN&gt;&lt;BR /&gt;mode: esri.layers.FeatureLayer.MODE_SNAPSHOT,&lt;BR /&gt;outFields: ["*"]&lt;BR /&gt;});&lt;BR /&gt;&lt;SPAN&gt;landuseLineLayer = new esri.layers.FeatureLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A6080%2Farcgis%2Frest%2Fservices%2Fedit%2FFeatureServer%2F34" rel="nofollow" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/edit/FeatureServer/34&lt;/A&gt;&lt;SPAN&gt;", {&lt;/SPAN&gt;&lt;BR /&gt;mode: esri.layers.FeatureLayer.MODE_SNAPSHOT,&lt;BR /&gt;outFields: ["*"]&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;map.addLayers([landusePointLayer, landuseLineLayer]);&lt;BR /&gt;var ltline = landuseLineLayer;&lt;BR /&gt;var ltpole = landuseLineLayer;&lt;/P&gt;&lt;P&gt;dojo.connect(map, "onLoad", function () {&lt;/P&gt;&lt;P&gt;dojo.connect(dijit.byId("map"), "resize", map, map.resize);&lt;BR /&gt; &lt;BR /&gt;});&lt;BR /&gt;}&lt;BR /&gt;var selectedTemplate;&lt;BR /&gt;function LTEXT() {&lt;BR /&gt; &lt;BR /&gt;//var l = landuseLineLayer;&lt;BR /&gt;var p1 = new esri.geometry.Point(218103.84229999967, 1172648.3827999998, map.spatialReference);&lt;/P&gt;&lt;P&gt;line = new esri.geometry.Polyline();&lt;BR /&gt;line.addPath([p1]);&lt;BR /&gt;dojo.connect(map, "onClick", addPt);&lt;BR /&gt;}&lt;BR /&gt; &lt;BR /&gt;function addPt(e) {&lt;BR /&gt;debugger;&lt;BR /&gt;var selectedTemplate;&lt;BR /&gt;var featureLayers;&lt;BR /&gt;var geometryType;&lt;BR /&gt;debugger;&lt;BR /&gt;// create a new path using the current line endpoint and the click point&lt;BR /&gt;//var p2 = esri.geometry.geographicToWebMercator(new esri.geometry.Point(e.mapPoint.x, e.mapPoint.y, map.spatialReference));&lt;BR /&gt;//line.addPath([p2]);&lt;BR /&gt;var pathCount = line.paths.length;&lt;BR /&gt;line.addPath([line.paths[pathCount - 1][line.paths[pathCount - 1].length - 1], [e.mapPoint.x, e.mapPoint.y]]);&lt;BR /&gt;lineGraphic = map.graphics.add(new esri.Graphic(line, new esri.symbol.SimpleLineSymbol()));&lt;BR /&gt;map.graphics.add(new esri.Graphic(e.mapPoint, new esri.symbol.SimpleMarkerSymbol()));&lt;BR /&gt;var k = landuseLineLayer;&lt;BR /&gt;var p = landusePointLayer;&lt;BR /&gt;saveedits(lineGraphic, landuseLineLayer, landusePointLayer)&lt;BR /&gt;//lineGraphic.setGeometry(line);&lt;/P&gt;&lt;P&gt;/////////////////////////////////////////////////////////////////////////////////////////////&lt;BR /&gt;}&lt;BR /&gt;function saveedits(linegraphic, landuseLineLayer, landusePointLayer) {&lt;BR /&gt;debugger;&lt;BR /&gt;var graphic;&lt;/P&gt;&lt;P&gt;//graphic.setAttributes(attrs);&lt;BR /&gt;var newGraphic = new esri.Graphic(lineGraphic, null);&lt;BR /&gt;landuseLineLayer.applyEdits([newGraphic], null, null);&lt;BR /&gt;// var newGraphic1 = new esri.Graphic1(e.mapPoint, null,null);&lt;BR /&gt;// landusePointLayer.applyEdits([newGraphic1], null,null);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;function executeQueryTask(sTownID) {&lt;BR /&gt;debugger;&lt;/P&gt;&lt;P&gt;query.where = "LTP_ID ='" + sTownID + "'";&lt;/P&gt;&lt;P&gt;//execute query&lt;BR /&gt;queryTask.execute(query, showResults);&lt;BR /&gt;}&lt;BR /&gt;function showResults(featureSet) {&lt;BR /&gt;debugger;&lt;BR /&gt;//remove all graphics on the maps graphics layer&lt;BR /&gt;map.graphics.clear();&lt;BR /&gt;//Performance enhancer - assign featureSet array to a single variable.&lt;BR /&gt;var resultFeatures = featureSet.features;&lt;BR /&gt;console.log(resultFeatures);&lt;BR /&gt;//Loop through each feature returned&lt;BR /&gt;for (var i = 0, il = resultFeatures.length; i &amp;lt; il; i++) {&lt;BR /&gt;//Get the current feature from the featureSet.&lt;BR /&gt;//Feature is a graphic&lt;BR /&gt;var graphic = resultFeatures&lt;I&gt;;&lt;BR /&gt;graphic.setSymbol(symbol);&lt;BR /&gt;//Set the infoTemplate.&lt;BR /&gt;//graphic.setInfoTemplate(infoTemplate);&lt;BR /&gt;//Add graphic to the map graphics layer. &lt;BR /&gt;map.graphics.add(graphic);&lt;BR /&gt;if (graphic.geometry.type === 'point') {&lt;BR /&gt;debugger;&lt;BR /&gt;map.centerAndZoom(graphic.geometry, 0.001);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/I&gt;&lt;/P&gt;&lt;P&gt;dojo.ready(init);&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body class="claro"&amp;gt;&lt;BR /&gt;&amp;lt;div style="height: 30px; border: solid 1px; border-color: #e4e4e4; width: 100%;&lt;BR /&gt;background: #f0ebff"&amp;gt;&lt;BR /&gt;Header&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div style="height: 25px; border: solid 1px; border-color: #e4e4e4; width: 100%;&lt;BR /&gt;background: #d2d2d2; text-align: center"&amp;gt;&lt;BR /&gt;ToolBar&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="gutters:true, design:'sidebar'"&lt;BR /&gt;style="width: 100%; height: 100%;"&amp;gt;&lt;BR /&gt;&amp;lt;div id="map" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'center'"&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div id="rightPane" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'right'"&amp;gt;&lt;BR /&gt;&amp;lt;span class="lbl"&amp;gt;Enter Value :&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;input type="text" id="pop" style="width: 150px;" /&amp;gt;&lt;BR /&gt;&amp;lt;input type="button" value="Zoom" onclick="executeQueryTask(dojo.byId('pop').value);"&lt;BR /&gt;class="btn" /&amp;gt;&lt;BR /&gt;&amp;lt;div id="templatePickerDiv1"&amp;gt;&lt;BR /&gt;&amp;lt;input type="button" id="templatePickerDiv" value="Start LT Ext" onclick="LTEXT()"&lt;BR /&gt;class="btn" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 16:02:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654316#M61006</guid>
      <dc:creator>bharathreddy</dc:creator>
      <dc:date>2016-11-16T16:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654317#M61007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bharath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In your addPt function you have:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;.......
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lineGraphic = map.graphics.add(new esri.Graphic(line, new esri.symbol.SimpleLineSymbol()));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(new esri.Graphic(e.mapPoint, new esri.symbol.SimpleMarkerSymbol()));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var k = landuseLineLayer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var p = landusePointLayer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; saveedits(lineGraphic, landuseLineLayer, landusePointLayer)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Where&amp;nbsp;lineGraphic is a graphic object. Then in your saveedits function you attempt to create a new graphic out of the&amp;nbsp;&lt;SPAN&gt;lineGraphic which is already a Graphic...&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;saveedits&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;linegraphic&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; landuseLineLayer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; landusePointLayer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;debugger&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; graphic&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;//graphic.setAttributes(attrs);&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; newGraphic &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;esri&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Graphic&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lineGraphic&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; landuseLineLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;applyEdits&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;newGraphic&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;// var newGraphic1 = new esri.Graphic1(e.mapPoint, null,null);&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;// landusePointLayer.applyEdits([newGraphic1], null,null);&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So It should be just:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;saveedits&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;linegraphic&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; landuseLineLayer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; landusePointLayer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;debugger&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; landuseLineLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;applyEdits&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;linegraphic&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:43:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654317#M61007</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T03:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654318#M61008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried the process which u mentioned but i am getting following error&amp;nbsp;(index):15 Error: Unable to complete operation.(…)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;moreover line graphics are disabling while applying edits waiting for ur reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 11:01:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654318#M61008</guid>
      <dc:creator>bharathreddy</dc:creator>
      <dc:date>2016-11-17T11:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654319#M61009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;I am attaching files of graphics which are disappearing while applying edits&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/265243_Untitled.png" style="width: 620px; height: 496px;" /&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/265274_Untitled2.png" style="width: 620px; height: 496px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 11:08:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/apply-edits/m-p/654319#M61009</guid>
      <dc:creator>bharathreddy</dc:creator>
      <dc:date>2016-11-17T11:08:27Z</dc:date>
    </item>
  </channel>
</rss>

