Select to view content in your preferred language

Identify Widget 2.2.2  Fields are not being displayed

2217
13
03-09-2011 10:27 AM
MatthewStarr
Deactivated User
Identify Widget 2.2.2 for Flex 2.2  using AGS9.3.1

I am having a problem displaying any field in the identify pop up that i have defined in the XML.  other feature such as "parcels" that are visible but not defined specifically ARE displayed.
http://71.176.110.94/survey/index.html

Which leads me to believe user error is involved here.  As you can see I am trying to avoid having the whole  URL in the link field in the GDB however I cannot get any field to display.  The Name does display correctly for the feature layer clicked so i believe it is 'seeing' the layer, just not the fields.  I have tried converting the data to shapefile, as is the case with NGS and Parcels, but GRS remains a file GDB.

any thoughts would be welcome.  thanks in advance Robert.

Matt

below are my markup files

IdentifyWidget.xml

<?xml version="1.0" ?>
<!--
 ////////////////////////////////////////////////////////////////////////////////
 //
    // Version 2.2.2 - Feb. 18, 2010
    //
    ///////////////////////////////////////////////////////////////////////////////
-->
<configuration>
 <identifylayeroption>visible</identifylayeroption>
 <identifytolerance>5</identifytolerance>
 <defaultzoomscale>5000</defaultzoomscale>
 <keepidentifyactive>true</keepidentifyactive>
 <returngeometryforzoom>true</returngeometryforzoom>
 <labels>
  <zoom2message>Click to Zoom to Point</zoom2message>
  <identifylabel>Identify</identifylabel>
  <resultslabel>Results</resultslabel>
  <descriptionlabel>Use the identify tool to identify features on the map:</descriptionlabel>
  <pointlabel>Identify</pointlabel>
  <clearlabel>Clear</clearlabel>
  <loadinglabel>Loading...</loadinglabel>
 </labels>
 <useproxy>
  <proxylayer>
   <!--<name>Imagery</name>-->
  </proxylayer>
 </useproxy>
 <layers onlythese="false">
  <layer>
   <name>GRS</name>
   <fields>XCOORD,ID</fields>
   <linkfield>ID</linkfield>
   <linkprefix>http://71.176.110.94/survey/TieSketch/GRS</linkprefix>
   <linksuffix>.pdf</linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>NGS</name>
   <fields>PID,DATA_SRCE</fields>
   <linkfield>DATA_SRCE</linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
 </layers>
 <info>widgets/InfoTemplates/InfoPopupWidget.swf</info>
</configuration>




Config.XML


<?xml version="1.0" ?>
<!--
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2010 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.2 - http://links.esri.com/flexviewer
//
////////////////////////////////////////////////////////////////////////////////
-->
<configuration>
    <title>Cayuga County Survey Control</title>
    <subtitle></subtitle>
    <logo>assets/images/bronzeseal.png</logo>
    <style>
  <colors>0xCCCCCC,0x777777,0x555555,0x333333,0xCCCCCC</colors>
  <alpha>0.8</alpha>
    </style>
 <bing key="AuZ1Kmk2LSfUH7S3BeZGe_7n99naRNMxTN-4kQIWz6ZZkPQklow-ib102hanVZ2-" />
    <!-- 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 initialextent="-8529900 5298700 -8517300 5305760" top="40">
        <basemaps>
   <layer label="Roads" type="bing" visible="true" alpha="1" style="road" culture="en-US"  />
            <layer label="Bing" type="bing" visible="false" alpha="1" style="aerialWithLabels" culture="en-US" />
        </basemaps>
        <operationallayers>
   <layer label="NGS" type="feature" visible="true" alpha="1"
     info="widgets/InfoTemplates/SimpleInfoWinWidget.swf"
                   infoconfig="widgets/InfoTemplates/IWT_NGS.xml"
                   url="http://71.176.110.94/ArcGIS/rest/services/survey/MapServer/2"/>
   <layer label="GRS" type="feature" visible="true" alpha="1"
     info="widgets/InfoTemplates/SimpleInfoWinWidget.swf"
                   infoconfig="widgets/InfoTemplates/IWT_GRS.xml"
                   url="http://71.176.110.94/ArcGIS/rest/services/survey/MapServer/3"/>
   <layer label="DEC" type="feature" visible="true" alpha="1"
     info="widgets/InfoTemplates/SimpleInfoWinWidget.swf"
                   infoconfig="widgets/InfoTemplates/IWT_DEC.xml"
                   url="http://71.176.110.94/ArcGIS/rest/services/survey/MapServer/4"/>
   <layer label="Parcels" type="feature" visible="true" alpha="1"
     <info="widgets/InfoTemplates/SimpleInfoWinWidget.swf"
                   infoconfig="widgets/InfoTemplates/IWT_ComercialProperties.xml"
     url="http://71.176.110.94/ArcGIS/rest/services/survey/MapServer/6"/>
     
   <!--<layer label="Survey Control" type="dynamic" visible="true" visiblelayers="0,1,5,6"
     url="http://71.176.110.94/ArcGIS/rest/services/Survey/MapServer"/>-->
        </operationallayers>
    </map>

    <!-- widgets organized into widget containers that manage close/open etc -->
    <!-- supported layout property options: horizontal(default)|float|vertical|fix-->
    
 <widget preload="open"
  config="widgets/Splash/SplashWidget.xml"
  url="widgets/Splash/SplashWidget.swf"/>
 
 <widgetcontainer layout="float">
      <widget label="Bookmarks"         left="430" top="90"
                icon="assets/images/i_bookmark.png"
                config="widgets/Bookmark/BookmarkWidget.xml"
                url="widgets/Bookmark/BookmarkWidget.swf"/>
        <widget label="Find an address"   left="590" top="280" 
                icon="assets/images/i_target.png"
                config="widgets/Locate/LocateWidget_US.xml"
                url="widgets/Locate/LocateWidget.swf"/>
        <!--<widget label="Available Commercial Facilities" left="100" top="90" preload="open"
                icon="assets/images/i_flag.png"
                config="widgets/Query/QueryWidget_CEDA_CommercialProperties.xml"
                url="widgets/Query/QueryWidget.swf"/>-->
        <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="Google Street View" left="430" top="90"
    icon="assets/images/i_Streetview.png" 
    config="widgets/Streetview/StreetviewWidget.xml"
    url="widgets/Streetview/StreetviewWidget.swf"/>-->  
  <widget label="Identify" left="60" top="400"
                icon="assets/images/i_info.png"
                config="widgets/Identify/IdentifyWidget.xml"
                url="widgets/Identify/IdentifyWidget.swf"/> 
  <!--<widget label="Search" left="60" top="400"
                icon="assets/images/i_searchgraphical.png"
                config="widgets/Search/SearchWidget_ComProp.xml"
                url="widgets/Search/SearchWidget.swf"/>-->
        <!--<widget label="eSearch" left="60" top="400"
                icon="assets/images/i_searchgraphical.png"
                config="widgets/eSearch/SearchWidget.xml"
                url="widgets/eSearch/SearchWidget.swf"/>-->        
        
    </widgetcontainer>

</configuration>
Tags (2)
0 Kudos
13 Replies
RobertScheitlin__GISP
MVP Emeritus
Matt,

I see an syntax error in your main config.xml

<layer label="Parcels" type="feature" visible="true" alpha="1"
     <info="widgets/InfoTemplates/SimpleInfoWinWidget.swf"
                   infoconfig="widgets/InfoTemplates/IWT_ComercialProperties.xml"
     url="http://71.176.110.94/ArcGIS/rest/services/survey/MapServer/6"/>
0 Kudos
MatthewStarr
Deactivated User
Robert again thank you.  what XML editor do you use/recommend? I should not have missed that.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Matt,

   I just use notepad for the editing and use internet explorer to validate the xml because IE is really good at fussing about syntax.
0 Kudos
MatthewStarr
Deactivated User
That doesn't seem to effect the identify functionality.. it is for the info popup. I will comb over my other mark up for similar syntax errors
0 Kudos
JonFisher
Emerging Contributor
Robert again thank you.  what XML editor do you use/recommend? I should not have missed that.


I have to put in a HUGE recommendation for Notepad++. Not only does it color different elements for you (e.g. tags in blue, attributes in red, attribute values in purple, comments in green) which makes syntax errors much easier to spot, it just has an enormous library of bonus functionality (comparing two documents, tracking changes, search and replace across multiple files in a common directory,etc.)

You can get it from http://notepad-plus-plus.org/

I really can't recommend it highly enough. I was a notepad man for years, but this software changed my life. Plus, I really like that they accept donations but 100% of the money just goes to charity to inspire them. And no, I am in no way involved with the development or the team 😉
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Matt,

   Can you screen shot what you are seeing in the identify widgets results and info window?
0 Kudos
MatthewStarr
Deactivated User
Thanks for looking at this again Robert.  I attached a screen shot. and this is the link


http://71.176.110.94/survey/index.html
and layer
http://71.176.110.94/ArcGIS/rest/services/survey/MapServer/0


The Code has changes since my original post:

<!--
 ////////////////////////////////////////////////////////////////////////////////
 //
    // Version 2.2.2 - Feb. 18, 2010
    //
    ///////////////////////////////////////////////////////////////////////////////
-->
<configuration>
 <identifylayeroption>top</identifylayeroption>
 <identifytolerance>5</identifytolerance>
 <defaultzoomscale>5000</defaultzoomscale>
 <keepidentifyactive>true</keepidentifyactive>
 <returngeometryforzoom>true</returngeometryforzoom>
 <labels>
  <zoom2message>Click to Zoom to Point</zoom2message>
  <identifylabel>Identify</identifylabel>
  <resultslabel>Results</resultslabel>
  <descriptionlabel>Use the identify tool to identify features on the map:</descriptionlabel>
  <pointlabel>Identify</pointlabel>
  <clearlabel>Clear</clearlabel>
  <loadinglabel>Loading...</loadinglabel>
 </labels>
 <useproxy>
  <proxylayer>
   <!--<name>Imagery</name>-->
  </proxylayer>
 </useproxy>
 <layers onlythese="false">
  <layer>
   <name>CountyControlPoints</name>
   <fields>Reference,Northing,Easting,Elevation,Link,CNTRL_TWN</fields>
   <linkfield>link</linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>xNGS</name>
   <fields>PID,DATA_SRCE</fields>
   <linkfield>DATA_SRCE</linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
 </layers>
 <!--<info>widgets/InfoTemplates/SimpleInfoWinWidget.swf</info>-->
 <info>widgets/InfoTemplates/InfoPopupWidget.swf</info>
</configuration>


CONFIG

<?xml version="1.0" ?>
<!--
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2010 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.2 - http://links.esri.com/flexviewer
//
////////////////////////////////////////////////////////////////////////////////
-->
<configuration>
    <title>Cayuga County Survey Control</title>
    <subtitle></subtitle>
    <logo>assets/images/bronzeseal.png</logo>
    <style>
  <colors>0xCCCCCC,0x777777,0x555555,0x333333,0xCCCCCC</colors>
  <alpha>0.8</alpha>
    </style>
 <bing key="AuZ1Kmk2LSfUH7S3BeZGe_7n99naRNMxTN-4kQIWz6ZZkPQklow-ib102hanVZ2-" />
    <!-- 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 initialextent="-8529900 5298700 -8517300 5305760" top="40">
        <basemaps>
   <layer label="Roads" type="bing" visible="true" alpha="1" style="road" culture="en-US"  />
            <layer label="Bing" type="bing" visible="false" alpha="1" style="aerialWithLabels" culture="en-US" />
        </basemaps>
        <operationallayers>
   <layer label="Parcels" type="dynamic" visible="true" alpha="1" 
     url="http://71.176.110.94/ArcGIS/rest/services/parcels/MapServer"/>
   <!--<layer label="NGS" type="feature" visible="false" alpha="1"
     info="widgets/InfoTemplates/SimpleInfoWinWidget.swf"
     infoconfig="widgets/InfoTemplates/IWT_NGS.xml"
     url="http://71.176.110.94/ArcGIS/rest/services/survey/MapServer/1"/>
   <layer label="GRS" type="feature" visible="false" alpha="1"
     info="widgets/InfoTemplates/SimpleInfoWinWidget.swf"
     infoconfig="widgets/InfoTemplates/IWT_GRS.xml"
     url="http://71.176.110.94/ArcGIS/rest/services/survey/MapServer/2"/>
   <layer label="DEC" type="feature" visible="false" alpha="1"
     info="widgets/InfoTemplates/SimpleInfoWinWidget.swf"
     infoconfig="widgets/InfoTemplates/IWT_DEC.xml"
     url="http://71.176.110.94/ArcGIS/rest/services/survey/MapServer/3"/>-->
   <layer label="CountyControlPoints" type="feature" visible="true" alpha="1"
     info="widgets/InfoTemplates/SimpleInfoWinWidget.swf"
     infoconfig="widgets/InfoTemplates/IWT_AllPoints.xml"
     url="http://71.176.110.94/ArcGIS/rest/services/survey/MapServer/0"/>
   <!--<layer label="Zones" type="dynamic" visible="true" alpha="1" 
     url="http://71.176.110.94/ArcGIS/rest/services/survey/MapServer/4"/>-->
   
     <!--info="widgets/InfoTemplates/SimpleInfoWinWidget.swf"
     infoconfig="widgets/InfoTemplates/IWT_ComercialProperties.xml"-->
     
     
   <!--<layer label="Survey Control" type="dynamic" visible="true" visiblelayers="0,1,5,6"
     url="http://71.176.110.94/ArcGIS/rest/services/Survey/MapServer"/>-->
        </operationallayers>
    </map>

    <!-- widgets organized into widget containers that manage close/open etc -->
    <!-- supported layout property options: horizontal(default)|float|vertical|fix-->
    
 <widget preload="open"
  config="widgets/Splash/SplashWidget.xml"
  url="widgets/Splash/SplashWidget.swf"/>
 
 <widgetcontainer layout="float">
      <widget label="Bookmarks"         left="430" top="90"
                icon="assets/images/i_bookmark.png"
                config="widgets/Bookmark/BookmarkWidget.xml"
                url="widgets/Bookmark/BookmarkWidget.swf"/>
        <widget label="Find an address"   left="590" top="280" 
                icon="assets/images/i_target.png"
                config="widgets/Locate/LocateWidget_US.xml"
                url="widgets/Locate/LocateWidget.swf"/>
        <!--<widget label="DEC Survey Control" left="100" top="395" preload="open"
                icon="assets/images/yellowdot.png"
                config="widgets/Query/QueryWidget_DEC.xml"
                url="widgets/Query/QueryWidget.swf"/>
  <widget label="NOAA Survey Control" left="100" top="700" preload="open"
                icon="assets/images/w_close_red.png"
                config="widgets/Query/QueryWidget_NGS.xml"
                url="widgets/Query/QueryWidget.swf"/>-->  
  <!--<widget label="Cayuga County Survey Control" left="100" top="90" 
                icon="assets/images/yellowdot.png"
                config="widgets/Query/QueryWidget_GRS.xml"
                url="widgets/Query/QueryWidget.swf"/>-->  
        <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="Google Street View" left="430" top="90"
    icon="assets/images/i_Streetview.png" 
    config="widgets/Streetview/StreetviewWidget.xml"
    url="widgets/Streetview/StreetviewWidget.swf"/>-->  
  <widget label="Identify" left="60" top="90" preload="open"
                icon="assets/images/i_info.png"
                config="widgets/Identify/IdentifyWidget.xml"
                url="widgets/Identify/IdentifyWidget.swf"/>
  <widget label="Search" left="60" top="495" preload="open"
                icon="assets/images/i_searchgraphical.png"
                config="widgets/Search/SearchWidget_CountyControl.xml"
                url="widgets/Search/SearchWidget.swf"/>
        <!--<widget label="eSearch" left="60" top="400"
                icon="assets/images/i_searchgraphical.png"
                config="widgets/eSearch/SearchWidget.xml"
                url="widgets/eSearch/SearchWidget.swf"/>-->        
        
    </widgetcontainer>

</configuration>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Matt,

    When I remove the info attribute from the feature layers I can get your services to work fine:

<operationallayers>
   <layer label="Parcels" type="dynamic" visible="true" alpha="1" 
     url="http://71.176.110.94/ArcGIS/rest/services/parcels/MapServer"/>
   <!--<layer label="NGS" type="feature" visible="false" alpha="1"
     url="http://71.176.110.94/ArcGIS/rest/services/survey/MapServer/1"/>
   <layer label="GRS" type="feature" visible="false" alpha="1"
     url="http://71.176.110.94/ArcGIS/rest/services/survey/MapServer/2"/>
   <layer label="DEC" type="feature" visible="false" alpha="1"
     url="http://71.176.110.94/ArcGIS/rest/services/survey/MapServer/3"/>-->
   <layer label="CountyControlPoints" type="feature" visible="true" alpha="1"
     url="http://71.176.110.94/ArcGIS/rest/services/survey/MapServer/0"/>
   <!--<layer label="Zones" type="dynamic" visible="true" alpha="1" 
     url="http://71.176.110.94/ArcGIS/rest/services/survey/MapServer/4"/>-->
   
     <!--info="widgets/InfoTemplates/SimpleInfoWinWidget.swf"
     infoconfig="widgets/InfoTemplates/IWT_ComercialProperties.xml"-->
     
     
   <!--<layer label="Survey Control" type="dynamic" visible="true" visiblelayers="0,1,5,6"
     url="http://71.176.110.94/ArcGIS/rest/services/Survey/MapServer"/>-->
        </operationallayers>
0 Kudos
MatthewStarr
Deactivated User
I removed the info attributes.  cleared the Rest cache, cleared the Flex Cache and cleared the browser cache and for the Control Points I still only get the layer name in the identify results window.  For the parcels, which are not defined in the identify widget.xml i get all the fields.  I must be messing up the identify.xml I am just not connecting the problem.

Robert, Are you getting getting the Control Point fields to display? including the link?

If SO maybe I have not cleared out the caches properly...

Matt
0 Kudos