Select to view content in your preferred language

Can't Submit Job to Geoprocessing Service?

627
2
11-30-2010 09:21 AM
PlanningLDS
Emerging Contributor
Hello,
I'm having some trouble submitting a job to run a geoprocessing service task.  The task runs just fine from the services directory.  I tried to patch the code together from some other flex examples I've looked at.  I'll paste some pertinent code below.  Is there something simple I've missed?

I thought it was as simple as establishing the gp:

<esri:Geoprocessor
     id="gp"
     url="http://arcgis.allconet.org/ArcGIS/rest/services/PermitDashboard/GPServer/SitePermit"
showBusyCursor="true"/>

And then submitting the job when I call the submit function:

gp.submitJob(params);

I've attached the full .mxml if anyone wants to see more of what I'm trying to do.  Any thoughts would be most appreciated.

Thanks
Greg
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Greg,

   Try replacing your params object with this:

var params:Object = {inExpression:strExpression};
0 Kudos
PlanningLDS
Emerging Contributor
Thanks Robert,
That did the trick.  Since the parameter is set to optional I didn't think to look for my problem there.  I really value your contributions to the forums.
Thanks again.
0 Kudos