Select to view content in your preferred language

Pop-up configuration

496
2
06-30-2011 11:29 AM
LisaArnold
Deactivated User
Hello,

This is the first time I'm working with 2.3.x version of the viewer and am having trouble getting the popups configured correctly. I have included my configuration markup below. After adding in the popup to my layer I get the following error when the page loads:

Application Error
http response status: 200
Fault code: Client.CouldNotDecode
Fault info: Error #1085
Fault details: null

Main Config File
<layer label="NMBCC Web Map Data" type="dynamic" visible="true"
     url="http://gis-web.heritage.unm.edu/ArcGIS/rest/services/DataMgmt/nmbccWebMap/MapServer">     
     <sublayer id="1" popupconfig="popups/PopUp_nmbccWebMap_GeographicNames.xml"/>
   </layer>


Pop up config file
<?xml version="1.0" ?>
<configuration>
    <title>{Feature_Name}title>
    <fields>
        <field name="Class"/>
  <field name="County"/>
    </fields>
</configuration>


Thanks for any assistance figuring this out.
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Lisa,

   The error client could not decode always means that there is a syntax error in your xml. In your case a missing left carrot.

<?xml version="1.0" ?> <configuration>     <title>{Feature_Name}<title>     <fields>         <field name="Class"/>   <field name="County"/>     </fields> </configuration>
0 Kudos
LisaArnold
Deactivated User
Always the little things that get me! I was also missing the / in my closing title tag.

Thanks for the help Robert!
0 Kudos