Display 9.3 Service and use SimpleInfoWidget

605
3
10-13-2010 01:54 PM
MichaelVanhook
Occasional Contributor
I have setup the FlexViewer and began to adjust code. I cannot migrate from 9.3 at this time and the help site says that most functionality works with 9.3 services but I can't even get it to work with ESRI's 9.3 services.

            <layer label="Census" type="dynamic" visible="true" alpha="1" icon="" 
                   visiblelayers="3"
                   info="widgets/InfoTemplates/SimpleInfoWinWidget.swf" 
                   infoconfig="widgets/InfoTemplates/IWT_Census.xml" 
                   url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer" /> 


Here is the widget config
<?xml version="1.0" ?>
<configuration>
    <fields>NAME,CNTY_FIPS</fields>
    <titlefield>NAME</titlefield>
    <datefields></datefields> <!-- field in milliseconds -->
    <zoomscale>150000</zoomscale>
</configuration>


Services can be viewed as operational layers.

Any help using 9.3 services until I can migrate?
Tags (2)
0 Kudos
3 Replies
AlexJones
Emerging Contributor
Try changing the type from dynamic to feature and setting the url to a specific layer.

http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/0

Make sure it is in the list of operational layers.

            <layer label="Census" type="feature" visible="true"
                   info="widgets/InfoTemplates/SimpleInfoWinWidget.swf" 
                   infoconfig="widgets/InfoTemplates/IWT_Census.xml" 
                   url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/0" />
0 Kudos
MichaelVanhook
Occasional Contributor
Sorry Alex, I am trying to get a 9.3 dynamic service to work. Changing the value to "feature" (v10 layer type) did not work. Also the layer is selected by using the "visiblelayers" property. Counties are layer level 3.

            <layer label="Census" type="dynamic" visible="true" alpha="1" icon="" 
                   visiblelayers="3"
                   info="widgets/InfoTemplates/SimpleInfoWinWidget.swf" 
                   infoconfig="widgets/InfoTemplates/IWT_Census.xml" 
                   url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer" />


Thanks -
Mike
0 Kudos
AlexJones
Emerging Contributor
Mark

On this help page under concepts -> Configure the viewer -> layer tag
http://help.arcgis.com/en/webapps/flexviewer/help/index.html

# tiled: a cached ArcGIS Map Service (9.3 or later)
# dynamic: a non-cached ArcGIS Map Service (9.3 or later)
# feature: a single layer in an ArcGIS Map Service or Feature Service (9.3 or later)

All of these just need a 9.3 or later server.

The config-all.xml has examples of operational layers using the simpleInfoWinWidget. If you want to use dynamic that will work for display and keep the symbology from the MXD. Type feature (using a 9.3 service) will use default symbology in the viewer. See this thread.

http://forums.arcgis.com/threads/14685-Layer-does-not-display-as-a-quot-feature-quot-type-in-ArcGIS-...

When using type feature it needs to hit a single map service as I said. ...mapserver/1, ...mapserver/2, ...mapserver/3, etc. So depending on if you want the SimpleInfoWinWidget or not will influence how you hit the service. Again the config-all has really good samples of what you can do. I hope this helps a bit.
0 Kudos