Select to view content in your preferred language

FindParameters ALL layerIds

915
1
08-19-2011 06:10 AM
MarkHorsell
Emerging Contributor
Hi,
I want to run a find search on every layer. But i want to allow the user to be able to configure the services, which means i won't know which layerIds will be available. I could add that to the config, but i think it would be ok to just search every layer.

Is there a property i can use, such as the imaginary layerIds="{allLayers}"

Thanks
Tags (2)
0 Kudos
1 Reply
DrewDowling
Frequent Contributor
The find task accepts an array of layerids so you can control what layers are searched. You can get a list of the layerids in a map service using either

ArcGISDynamicMapServiceLayer.layerinfos
or
ArcGISDynamicMapServiceLayer.getalldetails
0 Kudos