<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to use asyncronous submitJob and get back job status on server? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-use-asyncronous-submitjob-and-get-back-job/m-p/722097#M16063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Paul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx for the help.... that did the trick.&amp;nbsp; I new it was looking for a responder, but I wasn't sure how to set the responder up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sincerely,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eddie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jun 2013 20:09:05 GMT</pubDate>
    <dc:creator>eddiequinlan</dc:creator>
    <dc:date>2013-06-28T20:09:05Z</dc:date>
    <item>
      <title>how to use asyncronous submitJob and get back job status on server?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-use-asyncronous-submitjob-and-get-back-job/m-p/722095#M16061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I must be missing something simple......&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an asyncronous job to create printable maps on the server.&amp;nbsp; Currently this is accomplished by&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MapPrintTask.submitJob(printingparams);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I would like to receive the status of the jobs as they are processing.&amp;nbsp; Therefore, I am trying to use the submitJob task as briefly explained in the esri help.&amp;nbsp; submitJob(printingparams, 'some responder', 'some status responder')&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As in my case I'm doing it as such:&amp;nbsp; submitJob(printingparams, myResponder, myStatus);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function myResponder():void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;do something&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function myStatus():void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;do something&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't get the two responders to work properly and get the following error.........&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Description Resource Path Location Type&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1067: Implicit coercion of a value of type Function to an unrelated type mx.rpc:IResponder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure how the responders work to invoke the function/tasks?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanx,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eddie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 14:49:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-use-asyncronous-submitjob-and-get-back-job/m-p/722095#M16061</guid>
      <dc:creator>eddiequinlan</dc:creator>
      <dc:date>2013-06-27T14:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to use asyncronous submitJob and get back job status on server?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-use-asyncronous-submitjob-and-get-back-job/m-p/722096#M16062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;signature for submitJob says those two functions need to use "IResponder" so maybe something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MapPrintTask.submitJob(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; printingparams, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; new AsyncResponder(myResponder,myResponderFaultHandler), &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; new AsyncResponder(myStatus,myStatusFaultHandler)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private function myStatus(event:JobInfo,token:Object=null): void {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// do stuff based on event.jobStatus&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 10:58:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-use-asyncronous-submitjob-and-get-back-job/m-p/722096#M16062</guid>
      <dc:creator>PaulHastings1</dc:creator>
      <dc:date>2013-06-28T10:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to use asyncronous submitJob and get back job status on server?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-use-asyncronous-submitjob-and-get-back-job/m-p/722097#M16063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Paul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx for the help.... that did the trick.&amp;nbsp; I new it was looking for a responder, but I wasn't sure how to set the responder up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sincerely,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eddie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 20:09:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-use-asyncronous-submitjob-and-get-back-job/m-p/722097#M16063</guid>
      <dc:creator>eddiequinlan</dc:creator>
      <dc:date>2013-06-28T20:09:05Z</dc:date>
    </item>
  </channel>
</rss>

