Hello,
I have a gp.submitJob that works, as in it goes and runs the job as expected. It creates several GIS files. (this works if I just run the gp.submitJob(params)).
Now I want to get the results to come back (get a specific featureclass, called wshed_results.gdb\wshed_1)
I don't really know what I'm doing, but here is what I have so far. I am getting a "1067: Implicit coercion of a value of type Function to an unrelated type mx.rpc:IResponder." error.
Any ideas on what I really should be doing?
Dorothy
//===============
...
gp.submitJob(params, completeCallback, statusCallback);
}
private function statusCallback(jobInfo):void
{
Alert.show(jobInfo.jobStatus);
}
private function completeCallback(jobInfo):void
{
gp.getResultData(jobInfo.jobId, result.value.features, displayResult);
}
private function displayResult(result, messages):void
{
var features = result.value.features;
var graphic:Graphic = new Graphic(features);
for each (var graphic:Graphic in event.executeResult.parameterValues[0].value.features)
{
graphic.symbol = watershedSimpleFill;
myGraphicsLayer.add(graphic);
}
/================