<?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: Attribute Inspector SaveButton - Bug with chrome and firefox in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-attribute-inspector-savebutton-bug-with-chrome/m-p/585906#M54739</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ganesh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for letting us know. I was able to reproduce the fact that the delete button and delete listener aren't working on Chrome in the Attribute Inspector sample.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can see that saves are working by using the browser console. Are you able to see the saves occurring in the background?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you opened a support ticket yet? That way we can get this tracked and in the queue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need a quick fix you can always manually build your own custom delete button and set the default delete button to false. Here is a psuedo-code example to get you pointed in the right direction:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
var layerInfos = [{
'featureLayer': petroFieldsFL,
'showAttachments': false,
'showDeleteButton': false, /* set this to false */
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....

var dButton = new Button({ label: "Delete", "class": "dButton"});
domConstruct.place(dButton.domNode, attInspector.deleteBtn.domNode, "after");

dButton.on("click",function(evt){
&amp;nbsp;&amp;nbsp;&amp;nbsp; updateFeature.getLayer().applyEdits(null,null,[updateFeature]);
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.hide();
})



&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/attributeinspector.html#event-delete" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developers.arcgis.com/javascript/jsapi/attributeinspector.html#event-delete&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 01:12:16 GMT</pubDate>
    <dc:creator>AndyGup</dc:creator>
    <dc:date>2021-12-12T01:12:16Z</dc:date>
    <item>
      <title>RE: Attribute Inspector SaveButton - Bug with chrome and firefox</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-attribute-inspector-savebutton-bug-with-chrome/m-p/585903#M54736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi ESRI Developer team / GIS folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have developed an WEBGIS application where an user can go &amp;amp;&amp;nbsp; edit individual feature layers in the application. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you know, the attribute inspector by default only comes with delete button. But, for some, users would like to have a save&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; button added on to attribute inspector and once they have completed editing, they wanted to use the save button. So, I have looked at the sample link below from ESRI javascript API and implemented the functionality into my application. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://developers.arcgis.com/javascript/samples/ed_attribute_inspector/"&gt;http://developers.arcgis.com/javascript/samples/ed_attribute_inspector/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The delete button and save button works extremely well in Internet Explorer, but fails to execute in FireFox and Chrome. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So to test this, I checked the sample link above to see whether the code works in firefox and chrome, but the problem is the same&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in the ESRI sample link. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is when you copy the link above in FF or Chrome and click any feature on the map and make some changes to the attribute, if you press save button, it will save on chrome and FF. But, if you press Delete button to delete a feature, then, it activates the save button, but not delete button. Actually the problem is here with the delete and save button, in FF and chrome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please look into this sample link above and throw some lights on how to fix it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 10:02:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-attribute-inspector-savebutton-bug-with-chrome/m-p/585903#M54736</guid>
      <dc:creator>GaneshSolai_Sambandam</dc:creator>
      <dc:date>2014-02-07T10:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Inspector SaveButton - Bug with chrome and firefox</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-attribute-inspector-savebutton-bug-with-chrome/m-p/585904#M54737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi ESRI Developer team / GIS folks,&lt;BR /&gt;&lt;BR /&gt;I have developed an WEBGIS application where an user can go &amp;amp;&amp;nbsp; edit individual feature layers in the application. &lt;BR /&gt;&lt;BR /&gt;As you know, the attribute inspector by default only comes with delete button. But, for some, users would like to have a save&lt;BR /&gt; button added on to attribute inspector and once they have completed editing, they wanted to use the save button. So, I have looked at the sample link below from ESRI javascript API and implemented the functionality into my application. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://developers.arcgis.com/javascript/samples/ed_attribute_inspector/"&gt;http://developers.arcgis.com/javascript/samples/ed_attribute_inspector/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The delete button and save button works extremely well in Internet Explorer, but fails to execute in FireFox and Chrome. &lt;BR /&gt;&lt;BR /&gt;So to test this, I checked the sample link above to see whether the code works in firefox and chrome, but the problem is the same&lt;BR /&gt;in the ESRI sample link. &lt;BR /&gt;&lt;BR /&gt;The problem is when you copy the link above in FF or Chrome and click any feature on the map and make some changes to the attribute, if you press save button, it will save on chrome and FF. But, if you press Delete button to delete a feature, then, it activates the save button, but not delete button. Actually the problem is here with the delete and save button, in FF and chrome.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can you please look into this sample link above and throw some lights on how to fix it.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi GIS folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help me on this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ganesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Feb 2014 18:00:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-attribute-inspector-savebutton-bug-with-chrome/m-p/585904#M54737</guid>
      <dc:creator>GaneshSolai_Sambandam</dc:creator>
      <dc:date>2014-02-09T18:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Inspector SaveButton - Bug with chrome and firefox</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-attribute-inspector-savebutton-bug-with-chrome/m-p/585905#M54738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone tell me why this savebutton functionality on chrome and firefox doesn't work properly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The sample link above doesn't work either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help.................&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ganesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 13:58:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-attribute-inspector-savebutton-bug-with-chrome/m-p/585905#M54738</guid>
      <dc:creator>GaneshSolai_Sambandam</dc:creator>
      <dc:date>2014-02-11T13:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Inspector SaveButton - Bug with chrome and firefox</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-attribute-inspector-savebutton-bug-with-chrome/m-p/585906#M54739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ganesh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for letting us know. I was able to reproduce the fact that the delete button and delete listener aren't working on Chrome in the Attribute Inspector sample.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can see that saves are working by using the browser console. Are you able to see the saves occurring in the background?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you opened a support ticket yet? That way we can get this tracked and in the queue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need a quick fix you can always manually build your own custom delete button and set the default delete button to false. Here is a psuedo-code example to get you pointed in the right direction:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
var layerInfos = [{
'featureLayer': petroFieldsFL,
'showAttachments': false,
'showDeleteButton': false, /* set this to false */
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....

var dButton = new Button({ label: "Delete", "class": "dButton"});
domConstruct.place(dButton.domNode, attInspector.deleteBtn.domNode, "after");

dButton.on("click",function(evt){
&amp;nbsp;&amp;nbsp;&amp;nbsp; updateFeature.getLayer().applyEdits(null,null,[updateFeature]);
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.hide();
})



&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/attributeinspector.html#event-delete" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developers.arcgis.com/javascript/jsapi/attributeinspector.html#event-delete&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:12:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-attribute-inspector-savebutton-bug-with-chrome/m-p/585906#M54739</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-12-12T01:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Inspector SaveButton - Bug with chrome and firefox</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-attribute-inspector-savebutton-bug-with-chrome/m-p/585907#M54740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Ganesh,&lt;BR /&gt;&lt;BR /&gt;Thanks for letting us know. I was able to reproduce the fact that the delete button and delete listener aren't working on Chrome in the Attribute Inspector sample.&lt;BR /&gt;&lt;BR /&gt;I can see that saves are working by using the browser console. Are you able to see the saves occurring in the background?&lt;BR /&gt;&lt;BR /&gt;Have you opened a support ticket yet? That way we can get this tracked and in the queue.&lt;BR /&gt;&lt;BR /&gt;If you need a quick fix you can always manually build your own custom delete button and set the default delete button to false. Here is a psuedo-code example to get you pointed in the right direction:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
var layerInfos = [{
'featureLayer': petroFieldsFL,
'showAttachments': false,
'showDeleteButton': false, /* set this to false */
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....

var dButton = new Button({ label: "Delete", "class": "dButton"});
domConstruct.place(dButton.domNode, attInspector.deleteBtn.domNode, "after");

dButton.on("click",function(evt){
&amp;nbsp;&amp;nbsp;&amp;nbsp; updateFeature.getLayer().applyEdits(null,null,[updateFeature]);
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.hide();
})



&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/attributeinspector.html#event-delete" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developers.arcgis.com/javascript/jsapi/attributeinspector.html#event-delete&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Andy&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Andy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you very much for your quick turnaround. I am really amazed to see that you have responded to my query. The only problem is with the delete button and the save button works perfectly alright. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't logged a ticket with ESRI and to be honest, I don't how to log a support ticket with ESRI. Please guide on this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally, I will try to create a custom delete button as per your advice and see whether that one works and finally, a big thank you for the custom code as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ganesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:12:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-attribute-inspector-savebutton-bug-with-chrome/m-p/585907#M54740</guid>
      <dc:creator>GaneshSolai_Sambandam</dc:creator>
      <dc:date>2021-12-12T01:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Inspector SaveButton - Bug with chrome and firefox</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-attribute-inspector-savebutton-bug-with-chrome/m-p/585908#M54741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ganesh, no worries. I have gone ahead and submitted a tech support issue on this. I had asked because I didn't want to duplicate a submission if you had already entered one. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For future reference, there are a number of ways you can submit issues to tech support. If you are in the U.S. and have a maintenance contract you can call it in. If you are elsewhere, typically you would work with an Esri distributor first. And, if you have a developers. arcgis.com subscription plan then here is some information on the support you get for that: &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/plans/"&gt;https://developers.arcgis.com/en/plans/&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 13:31:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/re-attribute-inspector-savebutton-bug-with-chrome/m-p/585908#M54741</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2014-02-28T13:31:03Z</dc:date>
    </item>
  </channel>
</rss>

