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 ?