<?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: Delete record from custom web application in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-record-from-custom-web-application/m-p/710073#M66028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ray,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; When you setup the feature access for the map service did you make sure that the capabilities on Feature Access, included Operations allowed: Create, Delete, Update?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Dec 2015 15:22:43 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2015-12-22T15:22:43Z</dc:date>
    <item>
      <title>Delete record from custom web application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-record-from-custom-web-application/m-p/710068#M66023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I delete a record through a web application without using the ESRI jsapi?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I have&lt;/P&gt;&lt;P&gt;I have a point feature class. I am adding features through the GeoForm application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a web application using php, JS and html which reads directly from the table(Oracle) to retrieve the attributes. The web app allows the rows to be edited. This all seems to be working fine. I want to have a button which allows the user to delete a record. Can I do this through a regular oracle query based off the OBJECTID or do I need to use the JSAPI and delete is through the service which I have published. The layer is not versioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 17:57:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-record-from-custom-web-application/m-p/710068#M66023</guid>
      <dc:creator>RaymondGoins</dc:creator>
      <dc:date>2015-12-21T17:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from custom web application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-record-from-custom-web-application/m-p/710069#M66024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ray,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You should use the jsapi to delete the record. Just deleting the row in the table does not handle all the other SQL operations that occur when a feature is deleted using esri software.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 18:23:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-record-from-custom-web-application/m-p/710069#M66024</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-12-21T18:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from custom web application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-record-from-custom-web-application/m-p/710070#M66025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK that was my concern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know of any sample code I can look at? I was looking around briefly and had a hard time finding some code to do what I want which is just call the JSAPI and be able to delete the row by just having the objectid. There will be no map or anything just a basic list of rows with a delete link. I want to call the api once the delete button has been pressed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 19:27:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-record-from-custom-web-application/m-p/710070#M66025</guid>
      <dc:creator>RaymondGoins</dc:creator>
      <dc:date>2015-12-21T19:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from custom web application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-record-from-custom-web-application/m-p/710071#M66026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ray,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Your layer that you want to delete the feature from will need to be published as a feature access enabled Feature Service in ArcGIS Server. Once you have that then there is a rest endpoint for deleting feature(s) based on ObjectId(s). And it will be a simple &lt;A href="https://developers.arcgis.com/javascript/jsapi/esri.request-amd.html" title="https://developers.arcgis.com/javascript/jsapi/esri.request-amd.html"&gt;esri/request | API Reference | ArcGIS API for JavaScript&lt;/A&gt; to complete the delete.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 19:48:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-record-from-custom-web-application/m-p/710071#M66026</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-12-21T19:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from custom web application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-record-from-custom-web-application/m-p/710072#M66027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. You got me in the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running into another issue. I make the request but not getting back the response I'm looking for.&lt;/P&gt;&lt;P&gt;Here is my javascript code. I am using jQuery as well&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;$(".deltrench").each(function(){
&amp;nbsp; $(this).click(function(){
&amp;nbsp;&amp;nbsp;&amp;nbsp; //var objid = $(this).data("objid");
&amp;nbsp;&amp;nbsp;&amp;nbsp; var objid = 17000;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var delurl = '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fgismapserver%3A6080%2Farcgis%2Frest%2Fservices%2FHoles%2FMapServer%2F0%2FdeleteFeatures%27%3B" target="_blank"&gt;http://gismapserver:6080/arcgis/rest/services/Holes/MapServer/0/deleteFeatures';&lt;/A&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $.ajax({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type: "POST",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url: delurl,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "objectIds": objid,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "f": "json"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; success: function(data) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data = jQuery.parseJSON(data);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(data);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; });

&amp;nbsp; });
});&lt;/PRE&gt;&lt;P&gt;I post this to the server and there is a huge response. One thing I notice is&lt;/P&gt;&lt;P&gt;canModifyLayer:false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something I need to do extra? Seems like it may be a permissions thing. Do I need to pass along a username and password to use the service? When I published the service I did make it public. We are on an Intranet with no external access to the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:26:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-record-from-custom-web-application/m-p/710072#M66027</guid>
      <dc:creator>RaymondGoins</dc:creator>
      <dc:date>2021-12-12T06:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from custom web application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-record-from-custom-web-application/m-p/710073#M66028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ray,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; When you setup the feature access for the map service did you make sure that the capabilities on Feature Access, included Operations allowed: Create, Delete, Update?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 15:22:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-record-from-custom-web-application/m-p/710073#M66028</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-12-22T15:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from custom web application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-record-from-custom-web-application/m-p/710074#M66029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="holesFS.jpg" class="image-1 jive-image" height="339" src="https://community.esri.com/legacyfs/online/159466_holesFS.jpg" style="float: right; height: 339px; width: 417.024px;" width="417" /&gt;Yes.&lt;/P&gt;&lt;P&gt;I did notice in my script the url was incorrect. I have since changed it to&lt;/P&gt;&lt;P&gt;&lt;A href="http://192.168.20.14:6080/arcgis/rest/services/Holes/FeatureServer/0/deleteFeatures" title="http://192.168.20.14:6080/arcgis/rest/services/Holes/FeatureServer/0/deleteFeatures"&gt;http://gismapserver:6080/arcgis/rest/services/Holes/FeatureServer/0/deleteFeatures&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I get an empty object back as a response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 15:34:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-record-from-custom-web-application/m-p/710074#M66029</guid>
      <dc:creator>RaymondGoins</dc:creator>
      <dc:date>2015-12-22T15:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Delete record from custom web application</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-record-from-custom-web-application/m-p/710075#M66030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It actually worked fine once I passed a valid objectid to the script. Reading the post here&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/fsdelete.html" title="http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/fsdelete.html"&gt;Delete Features (Operation)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I thought I would get back a response saying it failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once a valid ObjectID was passed the feature was deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help Robert. I will mark this question as answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy holidays to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 15:39:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-record-from-custom-web-application/m-p/710075#M66030</guid>
      <dc:creator>RaymondGoins</dc:creator>
      <dc:date>2015-12-22T15:39:16Z</dc:date>
    </item>
  </channel>
</rss>

