Select to view content in your preferred language

Query with a blank where clause

795
4
Jump to solution
02-18-2014 11:15 AM
KeithWeber1
Deactivated User
Hi all,

I am new to using the ArcGIS API for Flex. I want to query a table and return all records, but when I attempt to execute a query without setting the where clause, I get an error. If I set something in the where clause, the query executes correctly. Does someone have some example code on how to execute a query with no search criteria?
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Keith,

   When trying to return everything than you just set the where clause to 1=1. Now each map service has a limit set by default to 1000 features.

View solution in original post

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Keith,

   When trying to return everything than you just set the where clause to 1=1. Now each map service has a limit set by default to 1000 features.
0 Kudos
KeithWeber1
Deactivated User
Thanks! That did the trick. In this particular scenario, the table should never contain more than a couple records.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Keith,

   Glad that worked for you. Now you can help the forums out by marking this thread as answered.

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:

0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Keith,

   Close... You missed step one (the most important) in the attached graphic.
0 Kudos