Pop-up Windows in Flex Viewer 2.3

4920
20
04-29-2011 09:38 AM
GregoryPierce
New Contributor II
Hi everyone,
I am wondering if anyone can help me with this.  I have been trying for a few days now get the pop-up windows working in version 2.3 and have been having some trouble.  Below is my config.xml and pop-up.xml code for the operational layer.  The layer shows up fine in the viewer, I just can't get any pop-up window to show up when I click on the layer.  Any help would be much appreciated, thanks. 

Here is the operational layer data for the config.xml file.

            <layer label="GPS Points" type="dynamic" visible="false"
                   popupconfig="popups/PopUp_GPSPoints.xml"
                   url="http://gisserver/ArcGIS/rest/services/GPSPoints/MapServer/"/>

And here is the PopUp_GPSPoints.xml file in it's entirety.

<?xml version="1.0" ?>
<configuration>
    <title>GPSPoints</title>    
    <fields>
        <field name="Name" alias="Name" visible="true"/> 
        <field name="Orig_File" alias="Original File" visible="true"/> 
    </fields>  
</configuration>

<!--
    Pop-up configuration file for:
    http://gisserver/ArcGIS/rest/services/GPSPoints/MapServer/
-->


Greg Pierce
GIS Specialist
Weber Basin Water Conservancy District

					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
Tags (2)
0 Kudos
20 Replies
OlgaBosenko
New Contributor
hello!
could enyone help me whith my code?
my popup file look like this:

<?xml version="1.0" ?>
<configuration>
<title>{NAME}</title>
<fields>
<field name="NAME"/> <!-- Used in title, do not repeat in content -->
<field name="TYPE" alias="Тип" visible="true"/>
<field name="NAME" alias="Текс�?" visible="true"/>
<field name="Ад�?ес" alias="Ад�?ес" visible="true"/>
</fields>

</configuration>

And config.xml

<configuration>
<title>ArcGIS Viewer for Flex</title>
<subtitle>a configurable web mapping application</subtitle>
<logo>assets/images/logo.png</logo>
<style>
<colors>0xFFFFFF,0x333333,0x101010,0x000000,0xFFD700</colors>
<alpha>0.8</alpha>
</style>
<!-- replace the following url with your own geometryservice -->
<geometryservice url="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" />

<!-- UI elements -->
<widget left="10" top="50" config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>
<widget right="-2" bottom="-2" config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"/>
<widget right="20" top="55" config="widgets/MapSwitcher/MapSwitcherWidget.xml" url="widgets/MapSwitcher/MapSwitcherWidget.swf"/>
<widget left="0" top="0" config="widgets/HeaderController/HeaderControllerWidget.xml" url="widgets/HeaderController/HeaderControllerWidget.swf"/>

<map wraparound180="true" initialextent="-3595100 1802500 -3503400 1831200" fullextent="-20000000 -20000000 20000000 20000000" top="40">
<!--<basemaps>
<layer label="Streets" type="tiled" visible="true"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
<layer label="Aerial" type="tiled" visible="false"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"/>
<layer label="Topo" type="tiled" visible="false"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>
</basemaps> -->
<operationallayers>
<layer label="Тес�?овое п�?иложение" type="dynamic" visible="true"
url="http://blackshine:8399/arcgis/rest/services/test5/MapServer">
<sublayer id="3" popupconfig="popups/PopUp_house.xml"/>
</layer>

</operationallayers>

</map>

<!-- widgets organized into widget containers that manage close/open etc -->
<!-- supported layout property options: horizontal(default)|float|vertical|fix-->
<widgetcontainer layout="float">

<widget label="Draw and Measure" left="60" top="400"
icon="assets/images/i_draw2.png"
config="widgets/Draw/DrawWidget.xml"
url="widgets/Draw/DrawWidget.swf"/>
<widget label="Print" left="390" top="400"
icon="assets/images/i_print.png"
config="widgets/Print/PrintWidget.xml"
url="widgets/Print/PrintWidget.swf"/>

<!--
<widget label="My first widget"
icon="assets/images/i_widget.png"
config="widgets/Samples/HelloWorld/HelloWorldWidget.xml"
url="widgets/Samples/HelloWorld/HelloWorldWidget.swf"/>
-->
</widgetcontainer>

</configuration>

When i started my app i can't see popup window at all.
I don't know Where my mistake?
0 Kudos