Select to view content in your preferred language

Identify widget 3.1 not returning layers

1427
10
01-23-2013 08:29 AM
by Anonymous User
Not applicable
I am new to flexviewer and am having trouble with the identify widget 3.1.  I have tried editing the layers and have gotten the widget to return results for two layers but not any others.  Below is a snippet of the coding.  Pinniped_Rookeries info is returned but with the other layers the tool doesn???t seem to recognize anything-there are no results returned, no message of ???No Results Found,??? nothing.  The identifylayeroption is set to visible.  Any help is greatly appreciated.
Charleen
  <layer>
            <name>Pinniped_Rookeries (ID: 2)</name>
            <fields>
                <field name="Sp_Com_Nam" alias="Common Name" popuponly="true"/>
                <field name="Location" popuponly="true"/>
            </fields>
            <links/>
            <zoomscale>15000</zoomscale>
            <forcescale>true</forcescale>
        </layer>
        <layer>
            <name>Pinnipeds NMFS 2007 (ID: 3)</name>
            <fields>
                <field name="Com_Name" popuponly="true"/>
                <field name="Location" popuponly="true"/>
            </fields>
            <links/>
            <zoomscale>15000</zoomscale>
            <forcescale>true</forcescale>
        </layer>
        <layer>
            <name>Land Ownership (ID: 5)</name>
            <fields>
                <field name="GOVT_LEVEL" alias="Gov. Level" popuponly="true"/>
                <field name="AGENCY" alias="Agency" popuponly="true"/>
                <field name="NAME" alias="Name" popuponly="true"/>
            </fields>
            <links/>
            <zoomscale>15000</zoomscale>
            <forcescale>true</forcescale>
        </layer>
Tags (2)
0 Kudos
10 Replies
RobertScheitlin__GISP
MVP Emeritus
Charleen,

   Right off I would say that it is an issue with the layers name (remove the ids):

<layer>
            <name>Pinniped_Rookeries</name>
            <fields>
                <field name="Sp_Com_Nam" alias="Common Name" popuponly="true"/>
                <field name="Location" popuponly="true"/>
            </fields>
            <links/>
            <zoomscale>15000</zoomscale>
            <forcescale>true</forcescale>
        </layer>
        <layer>
            <name>Pinnipeds NMFS 2007</name>
            <fields>
                <field name="Com_Name" popuponly="true"/>
                <field name="Location" popuponly="true"/>
            </fields>
            <links/>
            <zoomscale>15000</zoomscale>
            <forcescale>true</forcescale>
        </layer>
        <layer>
            <name>Land Ownership</name>
            <fields>
                <field name="GOVT_LEVEL" alias="Gov. Level" popuponly="true"/>
                <field name="AGENCY" alias="Agency" popuponly="true"/>
                <field name="NAME" alias="Name" popuponly="true"/>
            </fields>
            <links/>
            <zoomscale>15000</zoomscale>
            <forcescale>true</forcescale>
        </layer>       
0 Kudos
by Anonymous User
Not applicable
Thanks for responding!  Yes, I've tried that and have just tried it again.  I have placed 4 layers in the widget (Pinniped Rookeries, Pinniped locations, Land Ownership, Counties).  Identify returns for the Rookeries (points)  and the counties (polys) are perfect.  However, the Locations (points) and Ownership (polys) are unrecognized.  I'm sure there is some setting I need to change but am at a loss where to look at this point.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Charleen,

   Are the field names you have listed for those layers the Field Aliases as the documentation specifies?
0 Kudos
by Anonymous User
Not applicable
Thank you.  Yes, they are the aliases. 
For example, Pinniped_Rookeries field aliases are: Location ( type: esriFieldTypeString , alias: Location , length: 254 )
and Sp_Com_Nam ( type: esriFieldTypeString , alias: Sp_Com_Nam , length: 254 ) and the Pinniped locations field aliases are: Com_Name ( type: esriFieldTypeString , alias: Com_Name , length: 254 ) and Location ( type: esriFieldTypeString , alias: Location , length: 254 ) 

Widget code:
   <name>Pinniped_Rookeries</name>
            <fields>
                <field name="Sp_Com_Nam" alias="Common Name" popuponly="true"/>
                <field name="Location" popuponly="true"/>
            </fields>
        </layer>
        <layer>
            <name>Pinnipeds NMFS 2007</name>
            <fields>
                <field name="Com_Name" popuponly="true"/>
                <field name="Location" popuponly="true"/>
            </fields>
        </layer>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Charleen,

   For the layers take are not returning any results do you have the OBJECTID and SHAPE fields visible for those layers in the MXD that is used by that Map Service?
0 Kudos
by Anonymous User
Not applicable
Thanks for your help, Robert.  Yes, ObectID/FID and the shape fields are set to visible within the mxd.  All of the fields are visible and I have not set aliases for any of the fields within the properties. 

Charleen
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Charleen,

   Can you take a screenshot of the rest service directory page for one of those layers (that is not returning results) and post it?
0 Kudos
by Anonymous User
Not applicable
Hi Robert,

Attached is the REST page for one layer that will not return info and one page that will return info.

Thank you

Charleen
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Charleen,

   Can you try dropping the popuponly="true" from the fields for the "Pinnipeds NMFS 2007" layer?
0 Kudos