Select to view content in your preferred language

How to Search or Query on multiple text fields?

797
2
11-12-2010 10:54 AM
GeorgiannaStrode
Deactivated User
Users will fill in 2 or more fields and I'd like to retrieve records that match their criteria. 

Does anyone know how to do this?

Will I need to know if they didn't fill in a field to exclude it from the query string?

Any help is appreciated.  Thanks.
Tags (2)
0 Kudos
2 Replies
Ganael_Jatteau
Emerging Contributor
Hello,

You can use a FindTask when the user hit a search button.

http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/FindTask.html
0 Kudos
DasaPaddock
Esri Regular Contributor
You can also use Query.where as long as you create a valid SQL where clause.

See:
http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/supportClasses/Query.html#where
0 Kudos