Select to view content in your preferred language

What does the query widget query?

1680
17
12-09-2010 12:34 PM
RichardHolloway
Emerging Contributor
I am new and trying to figure this out.  You query a service but how do I create the items to be queried within that service?  In ArcMap I can't seem to find what I am looking for.  Can someone point me in the correct direction?
Tags (2)
0 Kudos
17 Replies
RobertScheitlin__GISP
MVP Emeritus
Richard,

   The Flex API and the FlexViewer are built around the ability to consume the REST EndPoint of ArcGIS Server.

So the query widget querys a MapService (through the REST EndPoint) that is published on ArcGIS Server.

Here is a link about publishing MXDs to ArcGIS Server.

http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/Tutorial_Publ...
0 Kudos
RichardHolloway
Emerging Contributor
Yep, got that but in the query widget don't you have to set something on the layer of the webservice for it to query?  Or am I not understanding it.
0 Kudos
RichardHolloway
Emerging Contributor
Is this what I need to look at?  Geodatabase: Working with Standard Spatial Datasets
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Richard,

   No you don't have to do anything if you except all the defaults and make sure that you don't have the shape or objectid fields of any layer in the mxd that you want to search.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Richard,

   Are you just trying to get your head wrapped around this or are you actually having issues querying one of your published map services?
0 Kudos
RichardHolloway
Emerging Contributor
LOL...getting my head wrapped around it.  I am looking at the example in for the police depts on the query widget.  I see the xml and all that but just don't see how to populate the items to be selected in the widget nor how does it select the items.  What is it querying and how are the items set up to query in the layer.  Does that make sense?  All I see is the query in the xml and a result.  No in between configuration.
0 Kudos
RichardHolloway
Emerging Contributor
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Richard,

   Maybe you should begin here with a simple sample of using the query task

http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=QueryTaskOnMap
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Richard,

   Also based on this statement
All I see is the query in the xml and a result. No in between configuration
it sounds like you are not using the FlexViewer source code. DO you have FlashBuilder?
0 Kudos