+ Reply to Thread
Results 1 to 2 of 2

Thread: How to keep track of multiple QueryTask executes?

  1. #1
    ryan mordoff
    Join Date
    Jun 2010
    Posts
    14
    Points
    5
    Answers Provided
    0


    0

    Default How to keep track of multiple QueryTask executes?

    With the flex api it was quite easy to keep track of multiple QueryTasks being executed by using AsyncTokens, but I can't find an equivalent in dojo. Any ideas on how to do this? I don't just want to lump requests together into a deferred list, I need to be able to identify each request being sent off somehow.

    Thanks,
    Ryan

  2. #2
    Derek Swingley

    Join Date
    May 2010
    Posts
    1,859
    Points
    892
    Answers Provided
    165


    0

    Default Re: How to keep track of multiple QueryTask executes?

    A dojo.DeferredList is your best option. The deferred list maintains the order of the deferreds so, for instance, the results from the queryTask that is the 2nd array passed to deferredList will be available as the second item in the array passed to the deferred list callback.
    --
    @derekswingley | ArcGIS API for JavaScript Team Member.

    If you're posting a code or html sample, please wrap it in code tags.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts