Select to view content in your preferred language

Troubles with Pop ups in 2.3.1

1141
11
06-17-2011 01:26 PM
JoshWhite
Honored Contributor
I recently upgraded my Flex Viewer to 2.3.1 and liked the idea of the popups.  I set popups up for my operational layer called parcels.  Trouble is no window comes up even though the parcels are visible, it could be that I have some setting that isn't right.  I will post my config file in its current form.

<?xml version="1.0" ?>
<!--
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2010-2011 ESRI
//
// All rights reserved under the copyright laws of the United States.
// You may freely redistribute and use this software, with or
// without modification, provided you include the original copyright
// and use restrictions.  See use restrictions in the file:
// <install location>/License.txt
//
// Read more about ArcGIS Viewer for Flex 2.3 - http://links.esri.com/flexviewer
//
////////////////////////////////////////////////////////////////////////////////
-->
<configuration>
    <title>ArcGIS Viewer for Flex</title>
    <subtitle>a configurable web mapping application</subtitle>
    <logo>assets/images/logo.png</logo>
    <style>
  <!-- Black Gold -->
  <!--<colors>0xFFFFFF,0x333333,0x101010,0x000000,0xFFD700</colors>-->
 
  <!--Cobalt Blue-->
  <colors>0xCEE7F4,0x39628C,0x355D89,0x294867,0xCEE7F4</colors>

  <!--Desert Sand-->
  <!--<colors>0x4C2600,0xFFEDB8,0xB2AD81,0x6F6750,0x4C2600</colors>-->

  <!--Graphite Gray-->
  <!--<colors>0xCCCCCC,0x777777,0x555555,0x333333,0xCCCCCC</colors>-->

  <!--Sage Green-->
  <!--<colors>0x333333,0xAFCFAF,0xFFFFAB,0xEAEA9D,0x333333</colors>-->

  <!--Sky Blue-->
  <!--<colors>0x444444,0xEBF4FF,0xEBF4FF,0xDEEBFF,0x444444</colors>-->
        
        <alpha>0.8</alpha>
    </style>
    
<!-- replace the following url with your own geometryservice -->
    <geometryservice url="http://gis-server/arcgis/services/Geometry/GeometryServer" />
    <!-- replace the following key with your own Bing key -->
    <bing key="AimeQHzZTeJKIPYZ5vdHrcZI2AMEvmZCaDqCQaB68PP3sHQd2Zhl7pHBZ3zKsWcM"/>
    <splashpage label="ArcGIS Viewer for Flex" config="widgets/Splash/SplashWidget.xml" url="widgets/Splash/SplashWidget.swf"/>
    <!-- UI elements -->
    <widget left="10" top="50" config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>
    <widget bottom="35" right="5" config="widgets/StaticImage/StaticImageWidget.xml" url="widgets/StaticImage/StaticImageWidget.swf"/>
    <widget right="-2" bottom="-2" config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"/>
    <widget right="15" 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"/>
    <widget left="3" bottom="3" config="widgets/Coordinate/CoordinateWidget.xml" url="widgets/Coordinate/CoordinateWidget.swf"/>

    <map wraparound180="true" initialextent="-10803160 4447456 -10801480 4448154" top="40">
        <basemaps>
            <layer label="Streets" type="tiled" visible="false"  alpha="1"
                   url="http://gis-server/ArcGIS/rest/services/StreetsBase/MapServer"/>
            <layer label="Aerial"  type="tiled" visible="true" alpha="1"
                   url="http://gis-server/ArcGIS/rest/services/Aerial/MapServer"/>
            <layer label="Topo"    type="tiled" visible="false" alpha="1"
                   url="http://gis-server/ArcGIS/rest/services/Topographic/MapServer"/>
        </basemaps>
        <operationallayers>
            <!--<layer label="Demographics" type="tiled" visible="false" alpha="0.5"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Median_Household_Income/MapServer">
                <sublayer id="1" popupconfig="popups/PopUp_Demographics_BlockGroups.xml"/>
                <sublayer id="2" popupconfig="popups/PopUp_Demographics_Tracts.xml"/>   
                <sublayer id="3" popupconfig="popups/PopUp_Demographics_Counties.xml"/>
                <sublayer id="4" popupconfig="popups/PopUp_Demographics_States.xml"/>  
            </layer> -->
              <layer label="Utilities" type="dynamic" visible="false"
                   url="http://gis-server/ArcGIS/rest/services/Utilities/MapServer"/>
            
  <layer label="Parcels" type="dynamic" visible="true"
                   popupconfig="popups/PopUp_parcels.xml"
     url="http://gis-server/ArcGIS/rest/services/Parcels/MapServer"/>

   
<!--<layergroup name="Operations">
  <layer label="Redlines" type="feature" visible="false" alpha="1"
  info="widgets/InfoTemplates/AdvanceInfoWinWidget.swf"
  infoconfig="widgets/InfoTemplates/Infra-Redlines.xml"
  url="http://gis-server/ArcGIS/rest/services/Naperville/InfrastructureOperations/FeatureServer/0"/>
</layergroup>-->                   
        </operationallayers>
    </map>

    <!-- widgets organized into widget containers that manage close/open etc -->
    <!-- supported layout property options: horizontal(default)|float|vertical|fix-->
    <widgetcontainer layout="horizontal">
        <widget label="Bookmarks"         
                icon="assets/images/i_bookmark.png"
                config="widgets/Bookmark/BookmarkWidget.xml"
                url="widgets/Bookmark/BookmarkWidget.swf"/>
        <widget label="Find an address"    preload="open"
                icon="assets/images/i_target.png"
                config="widgets/Locate/LocateWidget_ArkCity.xml"
                url="widgets/Locate/LocateWidget.swf"/>
        
 <!--<widget label="Louisville Police" 
                icon="assets/images/i_police.png"
                config="widgets/Query/QueryWidget_Louisville_PoliceStations.xml"
                url="widgets/Query/QueryWidget.swf"/> -->

        <widget label="Search" 
                icon="assets/images/i_search.png"
                config="widgets/Search/SearchWidget_Louisville.xml"
                url="widgets/Search/SearchWidget.swf"/>
      
        <widget label="Draw and Measure" 
                icon="assets/images/i_draw2.png"
                config="widgets/Draw/DrawWidget.xml"
                url="widgets/Draw/DrawWidget.swf"/>
        <widget label="Print" 
                icon="assets/images/i_print.png"
                config="widgets/Print/PrintWidget.xml"
                url="widgets/Print/PrintWidget.swf"/>
 <widget label="Create PDF"
            icon="assets/images/i_saveToPDF.png"
            config="widgets/CreatePDF/CreatePDFWidget.xml"
            url="widgets/CreatePDF/CreatePDFWidget.swf"/>

 <widget label="Street View"
  icon="assets/images/i_gsv.png"
  config="widgets/FrStreetView/FrStreetView.xml"
  url="widgets/FrStreetView/FrStreetView.swf"/>
 <widget label="Layer List"
                icon="assets/images/i_layers.png"
                config="widgets/LayerList/LayerListWidget.xml"
                url="widgets/LayerList/LayerListWidget.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>
Josh White, AICP
Principal Planner

City of Arkansas City
Tags (2)
0 Kudos
11 Replies
PatrickWard1
Deactivated User
To use a pop-up window for a dynamic map service, you need to include the sublayer id and a closing </layer> tag as shown below.

<operationallayers>
<layer label="Parcels" type="dynamic" visible="true"
url="http://gis-server/ArcGIS/rest/services/Parcels/MapServer">
<sublayer id="0" popupconfig="popups/PopUp_parcels.xml"/>
</layer>
</operationallayers>
0 Kudos
BrianKratcha
Regular Contributor
To use a pop-up window for a dynamic map service, you need to include the sublayer id and a closing </layer> tag as shown below.

<operationallayers>
<layer label="Parcels" type="dynamic" visible="true"
url="http://gis-server/ArcGIS/rest/services/Parcels/MapServer">
<sublayer id="0" popupconfig="popups/PopUp_parcels.xml"/>
</layer>
</operationallayers>


I still cannot get mine to work.  When I add the </layer> tag I receive this error:


Fault code: Client.CouldNotDecode

Fault info: Error #1085

Fault details: null

What version SDK do I need to use?
0 Kudos
JoshWhite
Honored Contributor
I figured out my problem.  Since its a joined table I needed to add the joined table name as a prefix (ie: OwnershipRecords.OWNER) in order to get it to work.  Now I have another question, is there a line of code that can be added to increase the width of the box, its cutting off the attributes and also one of the field names.

I still have the problem with my updates not showing in Internet Explorer but Firefox seems to get my updates. 

I think its time Esri created a Flex Viewer that is out of the box.  Supposedly it doesn't require any programming but all this little subtleties are basically programming as far as I'm concerned.  I'm not a programmer, I am a GIS Coordinator.
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
PatrickWard1
Deactivated User
I still cannot get mine to work.  When I add the </layer> tag I receive this error:


Fault code: Client.CouldNotDecode

Fault info: Error #1085

Fault details: null

What version SDK do I need to use?


bkratcha,

Did you update your popup.xml to reflect the fields you want to display? Post your code if you can and I will take a look at it.
0 Kudos
BrianKratcha
Regular Contributor
bkratcha,

Did you update your popup.xml to reflect the fields you want to display? Post your code if you can and I will take a look at it.


Hi Patrick,

I was able to get it too work.  I was entering the wrong sublayer id. 

<layer label="Transmission" type="dynamic" visible="true" alpha="1"
        url="http://pse-dt-7-1010:8399/arcgis/rest/services/PPI_Flex_Viewer_Transmission/MapServer">
         <sublayer id="5" popupconfig="popups/PopUp_ExchangePoint.xml"/>
         <sublayer id="6" popupconfig="popups/PopUp_ExchangePoint.xml"/>
         <sublayer id="7" popupconfig="popups/PopUp_ExchangePoint.xml"/>
         <sublayer id="8" popupconfig="popups/PopUp_ExchangePoint.xml"/>
         <sublayer id="9" popupconfig="popups/PopUp_ExchangePoint.xml"/>
         <sublayer id="10" popupconfig="popups/PopUp_ExchangePoint.xml"/>
         <sublayer id="11" popupconfig="popups/PopUp_ExchangePoint.xml"/>
  </layer>
0 Kudos
JoshWhite
Honored Contributor
I can't seem to get my updates to the configuration files to show up in Internet Explorer 9.  They show up fine in Firefox.  I have cleared the cache closed/reopened the browser, restarted my computer and nothing seems to work.  Any ideas?
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
JustinConner
Frequent Contributor
I can't seem to get my updates to the configuration files to show up in Internet Explorer 9.  They show up fine in Firefox.  I have cleared the cache closed/reopened the browser, restarted my computer and nothing seems to work.  Any ideas?


I use Ccleaner when I want to make sure my browsers are all cleared.

http://www.piriform.com/CCLEANER
0 Kudos
JoshWhite
Honored Contributor
That sounded great until I realized it wasn't free.  Seems like a lot of money for a two second fix. Any other ideas?
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
JoshWhite
Honored Contributor
Thanks Justin, that seems to have fixed the problem.
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos