Select to view content in your preferred language

eSearch and Dynamic services

2323
5
03-31-2011 07:25 AM
by Anonymous User
Not applicable
Original User: zahoward

Let me begin this by saying I'm only able to configure the flex viewer and it's widgits, I'm not setup to perform any programming.

I've been able to configure the eSearch tool with all of my SDE based feature services and it works great. But i have a few datasets (tables) that are updated nightly that i would like to be able to include in my map application, but also query against (spatially) using the eSearch widget. These tables are point data (tables with lat/long), my services are created by adding XY data in arcmap and publishing that in ArcGIS server manager. The service is enable for mapping and feature access even though we don't want to edit this layer.

When i add one of these layers in my config.xml file, i have to add them as dynamic otherwise they won't show up:
<layer label="Permits and Rigs" type="dynamic" visible="false" alpha="1"                     url="http://dalarcgis/ArcGIS/rest/services/permits/MapServer"/>

Unfortunately, then I'm in a position where I can no longer select a feature on the map, a pipeline for instance, and spatially select the permits within a certain distance from that pipeline. From my testing, this is only possible when you specify type "feature" in the config.xml file.

I've attached copies of the config.xml and SearchWidget.xml file for your reference.

Has anyone found a way around this?

Thank you.
0 Kudos
5 Replies
JonFisher
Emerging Contributor
To use the feature type you need to specify a particular layer within the map service by adding the layer number to the URL, e.g.:
http://dalarcgis/ArcGIS/rest/services/permits/FeatureServer/0

Start with http://dalarcgis/ArcGIS/rest/services/ and click through to the feature service, then the layer you want and copy the URL.
0 Kudos
by Anonymous User
Not applicable
Original User: zahoward

That won't work with these dynamic XY event layers that are being rendered on the fly. But yes, that's how you specify the feature layers.

To use the feature type you need to specify a particular layer within the map service by adding the layer number to the URL, e.g.:
http://dalarcgis/ArcGIS/rest/services/permits/FeatureServer/0

Start with http://dalarcgis/ArcGIS/rest/services/ and click through to the feature service, then the layer you want and copy the URL.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Zach,

   I don't use XY Event tables but if I get some free time (ha ha) I will see if I can test this scenario.
0 Kudos
by Anonymous User
Not applicable
Original User: jhalligan

I am trying to do the same thing but with for the info popup widget.  If my type="dynamic" everything works fine but I can not get the info widget to work because it needs to be set to "feature".  If I set the type="feature" I get nothing on my map.  The strange thing is that although it is set to "dynamic" the search and esearch tools work and show a popup/zoom to the results after a querry.  Anyone know why the results will have an info popup from a querry but i cant just click to get a popup in a dynamic layer with XY events layers?
0 Kudos
zachhoward
New Contributor
I've seen the same on my end. Anyone had a chance to take a look at this issue? thx.

I am trying to do the same thing but with for the info popup widget.  If my type="dynamic" everything works fine but I can not get the info widget to work because it needs to be set to "feature".  If I set the type="feature" I get nothing on my map.  The strange thing is that although it is set to "dynamic" the search and esearch tools work and show a popup/zoom to the results after a querry.  Anyone know why the results will have an info popup from a querry but i cant just click to get a popup in a dynamic layer with XY events layers?
0 Kudos