Select to view content in your preferred language

Roberts Identify Widget Issue with a Particular feature

4932
32
Jump to solution
01-10-2012 02:30 AM
AlanHope
Occasional Contributor
Hi Robert
You had been assisting me with an Issue regarding the identify widget in a separate thread located here.
I wanted to start a new thread so that you could get credit for answering a question should you be able to do that for me (I have no doubts that you will be able to help)
The previous thread is located In this link
I have now narrowed this down to an Issue with the particular feature
I added our Manholes to the XML and these were identifiable using the following XML
<?xml version="1.0" ?> <configuration>  <betareturngeometryfix>false</betareturngeometryfix>  <identifylayeroption>visible</identifylayeroption>  <identifytolerance>5</identifytolerance>  <defaultzoomscale>2000</defaultzoomscale>  <keepidentifyactive>true</keepidentifyactive>  <returngeometryforzoom>false</returngeometryforzoom>  <enablelineselect>true</enablelineselect>  <enbleextentselect>true</enbleextentselect>  <enablepolyselect>true</enablepolyselect>  <enablemouseovergraphicsinfo>false</enablemouseovergraphicsinfo>  <enablemouseoverrecordinfo>false</enablemouseoverrecordinfo>  <usemaptime>false</usemaptime>  <autoactivatedtool>point</autoactivatedtool><!-- possible values are extent or polygon or mappoint or polyline or nothing -->  <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 by Point</pointlabel>   <linelabel>Identify by Polyline</linelabel>   <rectlabel>Identify by Rectangle</rectlabel>   <polylabel>Identify by Polygon</polylabel>   <clearlabel>Clear</clearlabel>   <loadinglabel>Loading...</loadinglabel>  </labels>  <useproxy>   <proxylayer>    <!--name>Imagery</name-->   </proxylayer>  </useproxy>  <layers onlythese="true">   <layer>    <name>Manholes</name>    <fields>UGS_ID,NEIGHBORHO</fields>    <links>     <link includeinresults="false" field="" alias="">      <linkprefix></linkprefix>      <linksuffix></linksuffix>      <iconfield></iconfield>      <iconprefix></iconprefix>      <iconsuffix></iconsuffix>     </link>    </links>    <zoomscale>2000</zoomscale>    <forcescale>false</forcescale>   </layer>     <layer>    <name>Pole Master</name>    <fields>POLEID,MUNI</fields>    <links>     <link includeinresults="false" field="" alias="">      <linkprefix></linkprefix>      <linksuffix></linksuffix>      <iconfield></iconfield>      <iconprefix></iconprefix>      <iconsuffix></iconsuffix>     </link>    </links>    <zoomscale>2000</zoomscale>    <forcescale>false</forcescale>   </layer>  </layers>  <symbols>      <simplefillsymbol color="0x448ccb" alpha="0.4" style="solid">       <outline color="0x448ccb" alpha="0.8" width="2"/>      </simplefillsymbol>      <simplemarkersymbol style="circle" size="12" color="0x448ccb" alpha="0.8" xoffset="0" yoffset="0" angle="0">       <outline style="solid" color="0xffffff" alpha="0.8" width="1"/>      </simplemarkersymbol>      <picturemarkersymbol url="assets/images/i_info.png" height="30" width="30" xoffset="0" yoffset="0" />   <simplelinesymbol color="0x448ccb" alpha="0.8" width="2"/>     </symbols> </configuration>


However the Pole Master features are not returned in the identify results
Here is my REST end point
Layer: Pole Master (ID: 0)
Display Field: POLEID
Type: Feature Layer
Geometry Type: esriGeometryPoint
......
Fields:
OBJECTID (Type: esriFieldTypeOID, Alias: OBJECTID)
POLEID (Type: esriFieldTypeString, Alias: POLEID, Length: 16 )
MUNI (Type: esriFieldTypeString, Alias: MUNI, Length: 20 )
.......

The Pole Master Table is a bit of beast and we are in the process of restructuring it however this wont be for the next 6-12 months.
Any ideas why the Manholes show but the Poles do not?

I will post the IE Dev mode response in the next post as it took me over the limit

Thanks for any assistance you are able to provide
Al
Tags (2)
0 Kudos
32 Replies
RobertScheitlin__GISP
MVP Emeritus
Alan,

   I want you to try this new compiled version of the IdentifyWidget and see if you get any different results. I sounds more nad more like a widget bug now.
0 Kudos
AlanHope
Occasional Contributor
I added the new version and here is what I found
1) Attempted with ONLYTHESE TRUE with both Manholes and Pole Master - same result - Manholes features show data and are highlighted and Pole Master features do NOT show data or highlight - Data showed in FIDDLER 2
2) Attempted with ONLYTHESE TRUE with only PoleMaster - No data or feature highlighted - Data returned in FIDDLER 2
3) Attempted with ONLYTHESE FALSE - Widget is still in a loading state after 10 minutes - Data is returned in FIDDLER 2

If you have a debug version you would like me to run through I can do...
Also if there are any other scenarios you would like me to run let me know, the invite to perform a remote session via join.me is still open
Thanks again for all your hard work
Al
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Alan,

  Try this:

   onlythese="false" and

        <layer>
            <name>Pole Master</name>
            <fields></fields>
            <links>
                <link includeinresults="false" field="" alias="">
                    <linkprefix></linkprefix>
                    <linksuffix></linksuffix>
                    <iconfield></iconfield>
                    <iconprefix></iconprefix>
                    <iconsuffix></iconsuffix>
                </link>
            </links>
            <zoomscale>2000</zoomscale>
            <forcescale>false</forcescale>
        </layer>
0 Kudos
AlanHope
Occasional Contributor
Robert
I updated the XML it now reads as follows
<?xml version="1.0" ?>
<configuration>
 <betareturngeometryfix>false</betareturngeometryfix>
 <identifylayeroption>visible</identifylayeroption>
 <identifytolerance>5</identifytolerance>
 <defaultzoomscale>2000</defaultzoomscale>
 <keepidentifyactive>true</keepidentifyactive>
 <returngeometryforzoom>false</returngeometryforzoom>
 <enablelineselect>true</enablelineselect>
 <enbleextentselect>true</enbleextentselect>
 <enablepolyselect>true</enablepolyselect>
 <enablemouseovergraphicsinfo>false</enablemouseovergraphicsinfo>
 <enablemouseoverrecordinfo>false</enablemouseoverrecordinfo>
 <usemaptime>false</usemaptime>
 <autoactivatedtool>point</autoactivatedtool><!-- possible values are extent or polygon or mappoint or polyline or nothing -->
 <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 by Point</pointlabel>
  <linelabel>Identify by Polyline</linelabel>
  <rectlabel>Identify by Rectangle</rectlabel>
  <polylabel>Identify by Polygon</polylabel>
  <clearlabel>Clear</clearlabel>
  <loadinglabel>Loading</loadinglabel>
 </labels>
 <useproxy>
  <proxylayer>
   <!-- <name>Imagery</name> -->
  </proxylayer>
 </useproxy>
 <layers onlythese="false">
  <layer>
   <name>Pole Master</name>
    <fields></fields>
     <links>
      <link includeinresults="false" field="" alias="">
       <linkprefix></linkprefix>
       <linksuffix></linksuffix>
       <iconfield></iconfield>
       <iconprefix></iconprefix>
      <iconsuffix></iconsuffix>
      </link>
     </links>
          <zoomscale>2000</zoomscale>
          <forcescale>false</forcescale>
  </layer>
 </layers>
 <symbols>
     <simplefillsymbol color="0x448ccb" alpha="0.4" style="solid">
      <outline color="0x448ccb" alpha="0.8" width="2"/>
     </simplefillsymbol>
     <simplemarkersymbol style="circle" size="12" color="0x448ccb" alpha="0.8" xoffset="0" yoffset="0" angle="0">
      <outline style="solid" color="0xffffff" alpha="0.8" width="1"/>
     </simplemarkersymbol>
     <picturemarkersymbol url="assets/images/i_info.png" height="30" width="30" xoffset="0" yoffset="0" />
  <simplelinesymbol color="0x448ccb" alpha="0.8" width="2"/>
    </symbols>
</configuration>

When I intially made this change I got the following message after performing an ID operation on a point - Data was returned in Fiddler the message remained in the widget
[ATTACH=CONFIG]11057[/ATTACH]
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Alan,

   What does your main config.xml look like?
0 Kudos
AlanHope
Occasional Contributor
Here you go
<?xml version="1.0" ?>
<configuration>
    <title>Duquesne Light Company GIS</title>
    <subtitle>GIS Asset Mapping Application</subtitle>
    <logo>assets/images/H_Logo_Blue.gif</logo>
    <style>
        <colors>0xffffff,0x39628c,0x355d89,0x294867,0xcee7f4</colors>
        <alpha>0.8</alpha>
        <titlefont name="Broadway"/>
        <subtitlefont name="null"/>
        <font name="Verdana" size="14"/>
    </style>
    <!-- replace the following url with your own geometryservice -->
    <geometryservice url="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" useproxy="false"/>
    <!-- UI elements -->
    <!-- widgets organized into widget containers that manage close/open etc -->
    <!-- supported layout property options: horizontal(default)|float|vertical|fix-->
    <widgetcontainer layout="float">
        <widget left="430" top="90" icon="assets/images/i_bookmark.png" label="Bookmarks" config="widgets/Bookmark/BookmarkWidget.xml" url="widgets/Bookmark/BookmarkWidget.swf"/>
        <widget url="widgets/Search/SearchWidget.swf" config="widgets/Search/SearchWidget_Search.xml" label="Search" icon="assets/images/i_search.png"/>
        <widget url="widgets/Legend/LegendWidget.swf" config="widgets/Legend/LegendWidget_Legend.xml" label="Legend" icon="assets/images/Legend32.png"/>
        <widget left="100" top="90" icon="assets/images/i_target.png" label="Find an address" config="widgets/Locate/LocateWidget_Bing.xml" url="widgets/Locate/LocateWidget.swf"/>
        <widget left="390" top="400" icon="assets/images/i_print.png" label="Print" config="widgets/Print/PrintWidget.xml" url="widgets/Print/PrintWidget.swf"/>
    <widget url="widgets/Identify/IdentifyWidget.swf" config="widgets/Identify/IdentifyWidget.xml" label="Identify" icon="assets/images/i_info.png"/>
    </widgetcontainer>
    <widget url="widgets/OverviewMap/OverviewMapWidget.swf" config="widgets/OverviewMap/OverviewMapWidget.xml" right="-2" bottom="-2"/>
    <widget url="widgets/MapSwitcher/MapSwitcherWidget.swf" config="widgets/MapSwitcher/MapSwitcherWidget.xml" right="20" top="55"/>
    <widget url="widgets/HeaderController/HeaderControllerWidget.swf" config="widgets/HeaderController/HeaderControllerWidget.xml" left="0" top="0"/>
    <widget url="widgets/Coordinate/CoordinateWidget.swf" config="widgets/Coordinate/CoordinateWidget.xml" label="Coordinate" icon="assets/images/i_globe.png" left="3;" bottom="3"/>
    <widget url="widgets/Navigation/NavigationWidget.swf" config="widgets/Navigation/NavigationWidget.xml" left="10" top="50"/>
  <widget url="widgets/Splash/SplashWidget.swf" config="widgets/Splash/SplashWidget.xml" label="Splash" icon="assets/images/i_globe.png"/>
  
    <map esrilogovisible="true" openhandcursorvisible="true" scalebarvisible="true" zoomslidervisible="false" wraparound180="true" initialextent="-8965423.97778172 4898407.752194342 -8837162.644319147 4974539.032366407" top="40">
        <basemaps>
            <layer type="tiled" label="Streets" url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" visible="true"/>
            <layer type="tiled" label="Imagery" url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" visible="false"/>
            <layer type="tiled" label="Topographic" url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" visible="false"/>
        </basemaps>
        <operationallayers>
            <layer type="dynamic" label="Landbase" alpha="0.5" url="http://wasgist/ArcGIS10/rest/services/Maps/Landbase/MapServer" visible="true">
                <sublayer id="0" popupconfig="popups/PopUp_Orig_Pole.xml"/>
                <sublayer id="1" popupconfig="popups/PopUp_GIS_PoleMap.xml"/>
        <sublayer id="8" popupconfig="popups/PopUp_ccu.xml"/>
            </layer>
            <layer type="dynamic" label="DLC Web Map" url="http://wasgist/ArcGIS10/rest/services/Maps/DLCWebMap/MapServer" visible="true">
                <sublayer id="0" popupconfig="popups/PopUp_Poles.xml"/>
                <sublayer id="6" popupconfig="popups/PopUp_TransCkt.xml"/>
                <sublayer id="7" popupconfig="popups/PopUp_TransStruct.xml"/>
                <sublayer id="10" popupconfig="popups/PopUp_kv345.xml"/>
                <sublayer id="9" popupconfig="popups/Popup_kv138.xml"/>
                <sublayer id="8" popupconfig="popups/Popup_kv69.xml"/>
                <sublayer id="5" popupconfig="popups/PopUp_River_X_tower.xml"/>
                <sublayer id="1" popupconfig="popups/PopUp_Manholes.xml"/>
                <sublayer id="4" popupconfig="popups/PopUp_Subs.xml"/>
                <sublayer id="24" popupconfig="popups/PopUp_BVR_PDOT.xml"/>
                <sublayer id="23" popupconfig="popups/PopUp_AGHST_PDOT.xml"/>
                <sublayer id="12" popupconfig="popups/PopUp_Parcels.xml"/>
                <sublayer id="42" popupconfig="popups/PopUp_Muni050603.xml"/>
            </layer>
        </operationallayers>
    </map>
</configuration>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Alan,

   I believe that the only course of action left for me to attempt to help you with would be if you could export out about 50 to 100 features to a File Geodatabase and let me make a web service from that here in house on my dev machine so that I can debug in Flash Builder and see why this particular service is causing issues. The identify widget code is very mature and has been used by thousands with out issue so this error is unusual. I though that my recient addition of the multi link supoprt could have introduced a bug but I am not leaning that way after carefully going over the code and all the back and forth we have done thus far.
0 Kudos
AlanHope
Occasional Contributor
Robert I will attempt to accomplish this tomorrow or Thursday and post it here
Thanks again for all your efforts - I am kinda relieved that it is not something obvious on my part :confused:
0 Kudos
AlanHope
Occasional Contributor
Robert
Attached is what you requested - I had our GIS manager produce this so if it isn't what you need let me know and I will work to get it for you
Thanks
Al
0 Kudos
MLowry
by
Frequent Contributor
Could you post a screenshot of your REST services directory showing where the layer that's not working is located?
0 Kudos