Select to view content in your preferred language

Predefined search. How to?

600
1
11-28-2012 02:05 AM
alexandergolubev
Emerging Contributor
I got JSON document with search parameters (?) from database maintainer. It looks similar to JSON string in this post. As I understand, I can use this JSON to perform searches in my iOS application.
But I have no idea how to do that. I found AGSFindParameters class, and it has method initWithJSON. So far I can suspect I should pass my JSON to this method and thus create parameters for AGSFindTask. However, AGSFindTask needs an URL for init method. I've tried to pass there URLs for feature layers, etc, but I always getting error "Invalid URL".
What I'm doing wrong and how I should use JSON to do predefined searches?
0 Kudos
1 Reply
NimeshJarecha
Esri Regular Contributor
If you want use predefined search with feature layer then you should use query methods on find (find task/parameters). You can use AGSQuery's initWithJSON method to and then execute query with query methods.

Hope this helps!

Regards,
Nimesh
0 Kudos