chrissie

Return value from Python-Tool to geoprocessor.getResultData

Discussion created by chrissie on Aug 14, 2017

Hi,

A js-api-script is calling an asynchronous ArcGis-Server-Geoprocessing-Service:

           gp = new Geoprocessor(<url>/GPServer/...");
           gp.submitJob(params, completeCallback, statusCallback, jobFailed);

 
The Geoprocessing-Service executes the Tool "Calculate Value", which contains a Python script.

What is the way to send the return-value (String) of the Python-Script back to the completeCallback-Function on Client?
gp.getResultData seems to be the wrong way.

Or is there any other posibility to get access to the return-value in the js ?

Thanks, Chris

Outcomes