Hi Ben,I would encourage you to re-think this and consider accepting user input instead of putting everything on the client from the start. Putting everything on the client will slow down initial app load time and probably provide a less than ideal user experience. Why not let your users specify some text, then use that as the searchText on your findParameters?
If you really want everything on the client, you probably want to use a query task, not a find task. Pre the documentation, the find task requires some text(not wildcards):A query task will let you specify a where clause of something like "1=1" to get all values (or the max number of records returned by your service, 1000 if you're using version 10 of ArcGIS Server). If you do this, you'll want to specify returnGeometry=false so that you're not needlessly pushing geometry across the wire. The one drawback here is that a query task will only work against a single layer.
Finally, I understand wanting to avoid SOAP, that's understandable. But why the aversion to AJAX?
Search a map service exposed by the ArcGIS Server REST API based on a string value.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.