Good Day Everyone, I am facing issues in canceling/deleting a job request. I have a tool to download a specific portion of the layer on the map.
So in the midst of processing the layer for download, a cancel button will appear. This button is used to cancel the job, however, I cannot find the solution to cancel this job.
I am currently using ArcGIS Api 3.4.1. Please do let me know if there is any other solutions to this. Thank you
I have tried the following:
let cancelURL = URL+"/"+jobId+"/delete"
esriRequest({
url: cancelURL,
content: {
f: 'json'
},
handleAs: "json",
callbackParamName: 'callback'
}).then((test)=>{console.log(test)})