Select to view content in your preferred language

Identify Widget 2.2.2  Fields are not being displayed

2219
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 took your config.xml and your IdentifyWidget.xml and plugged them into my flex viewer and I do get results.
0 Kudos
MatthewStarr
Deactivated User
Looks perfect.  I will rebuild it in a blank viewer thank you for your help
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   A new version of the identify widget is now available.

* 2.2.3 - Identify by point/line/extent/polygon are all now supported
- Info window will appear at the center of identified geometry now if returngeometryforzoom is set to true in xml file.
if returngeometryforzoom is true, when you mouse over a record the geometry for that particular record is drawn using the symbology defined in the xml
- The symbology used by the draw tools is now user defined in the xml
- Fixed an issues with link icon if prefix or suffix is supplied and a empty field.
0 Kudos
Bakht_AliMohammad_Khan
Deactivated User
[ATTACH=CONFIG]11313[/ATTACH]MSTARR..
           Thanks you very much... for providing help to all.. I try it and really it works..
                             Thanks yoou very much...




Bakht Ali
GIS Technicain
Horizon Information Technology
Riyadh KSA
0 Kudos