Hi All,
I've been trying to figure out if it's possible to point a custom widget back to the results of a GP service that are associated with that task, but I'm having trouble finding information on it. I need to build a better graphing widget than the pre-built ones, has anyone here ever accessed GP results with a custom widget?
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var obj = JSON.parse(this.responseText);
console.log("OBJ", obj);
console.log(obj.results[0].value);}
};
xmlhttp.open("GET", "SOMUEURL/GPServer/Script /execute?xmin="+xmin+"&ymin="+ymin+"&xmax="+xmax+"&ymax="+ymax+"&f=pjson", true);//parameters to send to GP service
xmlhttp.send();
},