I have a GP service on my ArcServer machine that performs an Extract Data process (clip, zip, and ship). I would like to call it using the JavaScript API. When I search for samples using this from the API documentation, it comes back as "0 samples found". I tend to learn best from studying samples, so this lack of an example is a problem. There is a sample for the Flex API, but I am trying to move away from Flex. Any working example code would be appreciated.
Here is a sample that uses a GP Geoprocessing - Export result as map service | ArcGIS API for JavaScript
Tim,
This is a nice application, but it does not quite address my issue. I would like a sample that uses the Extract Data widget (that is, that allows the user to download the shape file for a layer). Thanks for the link to the sample. It is interesting.
Artemis, thank you for providing an example to extract data.
However, that example does not use the ExtractData widget. Instead, it uses a Geoprocessor and then builds around it.
Is it possible to use this widget with a GP Service, locally hosted on Arcgis Server? If so, how should the service be set up in order to be compatible with the widget?
Here is a sample to show how it works with the ExtractData | API Reference | ArcGIS API for JavaScript 3.19:
What is the user and password yracub ?
Have you already tried with an image service too?
You need to put your ArcGIS Online credentials to login, because this ExtractData consumes credits.
You can switch the featureLayer reference to image service' url and Class in the JavaScript panel, and it should work.
The consumption of credits is debited from your account or from mine? I couldn't see any change on my organization account credit.
Hi @ArtemisFili
Thank you for your example shared - is the Geoprocessor server private?
(http://sampleserver4.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/Incident_Data_Extraction... ?) - I tried to execute the function but the error popped up and it cannot be done so I wonder if the service itself is not available?