Select to view content in your preferred language

Querying multiple/all layers in multiple in multiple mapservers?

1137
3
05-05-2011 06:53 PM
psingh
by
Deactivated User
Hi,

Is it possible to query multiple layers in multiple mapservers?

If someone can help or guide me towards a way to achieve this, I'll greatly appreciate it.

Thanks
Tags (2)
0 Kudos
3 Replies
BjornSvensson
Esri Regular Contributor
Not in one call.  You can only query against one layer at a time, but you could send multiple requests to achieve your multiple layer query functionality.

You might also want to look at FindTask and IdentifyTask.  They both work with a mapservice (as opposed to a layer within a mapservice like Query).  Depending on what/how you want to query, they might be helpful.
0 Kudos
psingh
by
Deactivated User
Hi,

Thanks a lot for response.  FindTasks does exactly what I was looking for.

I have one issue though - I have multiple findtasks define in the application and the second one doesn't run at all.  The executeComplete method is not returning anything.

If someone can help, I'll greatly appreciate that.
0 Kudos
psingh
by
Deactivated User
I just added a "fault" statement in the call and it is indeed failing.

This is the error:


TypeError: Error #1010: A term is undefined and has no properties.
at FindTask/executeCameras()
at FindTask/__cameraTask_executeComplete()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.esri.ags.tasks::FindTask/handleDecodedObject()
at Function/http://adobe.com/AS3/2006/builtin::call()
at com.esri.ags.tasks::BaseTask/handleResult()
at Function/<anonymous>()
at mx.rpc::Responder/result()
at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyResult()
at mx.rpc.events::ResultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()
at mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at DirectHTTPMessageResponder/completeHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
0 Kudos