Return value from Python-Tool to geoprocessor.getResultData

445
0
08-14-2017 12:40 AM
ChristianPagel1
New Contributor II

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

0 Kudos
0 Replies