Hi..Thanks for the info about the geoprocessor. Indeed, I can now see (and retrieve) the generated PDF when using the geoprocessing task through the services interface.To test parameter input, I have written the exact values to the console (see code below), then copied and pasted them into the services interface - this is where I get a "esriJobSucceeded" status back. var params = {
"xMin": map.extent.xmin,
"yMin": map.extent.ymin,
"xMax": map.extent.xmax,
"yMax": map.extent.ymax,
"Spatial_Reference": map.spatialReference.wkid,
"Map_Scale": esri.geometry.getScale(map),
"Visiblelayers": dojo.toJson(visiblelayers),
"Layout": dijit.byId("mapLayout").value,
"Include_Attributes": dijit.byId("incAttribs").checked,
"Map_Title": dijit.byId("mapTitle").value,
"PointGraphics": getFeatureSet("point"), // optional
"LineGraphics": getFeatureSet("polyline"), // optional
"PolyGraphics": getFeatureSet("polygon") // optional
};
console.log("PDF PARAMETERS");
console.log(map.extent.xmin);
console.log(map.extent.ymin);
console.log(map.extent.xmax);
console.log(map.extent.ymax);
console.log(map.spatialReference.wkid);
console.log(esri.geometry.getScale(map));
console.log(dojo.toJson(visiblelayers));
console.log(dijit.byId("mapLayout").value);
console.log(dijit.byId("incAttribs").checked);
console.log(dijit.byId("mapTitle").value);
console.log(getFeatureSet("point"));
console.log(getFeatureSet("polyline"));
console.log(getFeatureSet("polygon"));
I do use the getResultData function, but before that even fires, I check the status using the statusCallback as follows:function pdfStatusCallback(jobInfo) {
console.log(jobInfo.jobStatus);
if (jobInfo.jobStatus === "esriJobFailed") {
pdfErrorCallback();
}
}
That console statement is never fired. So basically, the task is not even being sent to the service as expected (which would hint at a parameter issue like you say), but I cant see how since I am successfully using the same parameters using the services interface..Still stumped!Richard.