Identify Widget !!

4360
8
Jump to solution
02-15-2015 03:32 AM
MohammedKhamis
New Contributor II

Dear Flex Time ,

Actually I have problem for identify widget in both version 3.7 & 3.6 !!

on the identify 3.7 widget :-

I am using the Flex Viewer 3.7 and the identify widget created by you for 3.7 version. I've set up the Identify widget but when I'm trying to access its results and select some features it is not returning anything. ? I dont know what is problem ?

on the identify 3.6 widget :-

I am using the Flex Viewer 3.6 and the identify widget by  3.6 version , it is working , but it is mix data value between 2 features or more !!

for Example

Road feature I fond values which belong of building values !!

I checking every things, but I dont know what happen !

Many thanks for help.

Regards,

Mohammed

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Mohammed,

   If that is the case then you have something extremely wrong. Do you have the "shape" and "ObjectId" fields visible in the map services for each of your layers in the MXD before you publish your service? Can you access your services using the rest endpoint in a browser?

View solution in original post

0 Kudos
8 Replies
RobertScheitlin__GISP
MVP Emeritus

Mohammed,

   Are you using App Builder to configure the widget or are you manually configuring using the XML?

0 Kudos
MohammedKhamis
New Contributor II

Robert ,

I am using App Builder (Flex) to configuration this widget ..

many thanks

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Mohammed,

   Please provide a copy of your IdentifyWidget.xml for review

0 Kudos
MohammedKhamis
New Contributor II

Dear Mr.Robert,

Please can you check configuration of my IdentifyWidget.xml ...

it is version 3.7 .

<?xml version="1.0" ?>

<configuration>

    <identifylayeroption>visible</identifylayeroption>

    <identifytolerance>5</identifytolerance>

    <defaultzoomscale>5000</defaultzoomscale>

    <keepidentifyactive>true</keepidentifyactive>

    <returngeometryforzoom>true</returngeometryforzoom>

    <enablelineselect>true</enablelineselect>

    <enableextentselect>true</enableextentselect>

    <enablepolyselect>true</enablepolyselect>

    <enablecircleselect>true</enablecircleselect>

    <enableellipseselect>true</enableellipseselect>

    <enablemouseovergraphicsinfo>false</enablemouseovergraphicsinfo>

    <enablemouseoverrecordinfo>true</enablemouseoverrecordinfo>

    <enablegraphicclickinfo>true</enablegraphicclickinfo>

    <usemaptime>false</usemaptime>

    <infoautoclosemilliseconds>2000</infoautoclosemilliseconds>

    <autoactivatedtool>mappoint</autoactivatedtool>

    <excludebasemaps>true</excludebasemaps>

    <disablepopuplinks>false</disablepopuplinks>

    <disablelayerdropdown>false</disablelayerdropdown>

    <disablealllayerschoice>false</disablealllayerschoice>

    <replacenullswithemptystring>true</replacenullswithemptystring>

    <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>

        <circlelabel>Identify by Circle</circlelabel>

        <ellipselabel>Identify by Ellipse</ellipselabel>

        <clearlabel>Clear</clearlabel>

        <loadinglabel>Loading...</loadinglabel>

        <removeresultmessage>Remove Result</removeresultmessage>

        <idfrom>Identify From</idfrom>

        <noresultsfoundlabel>No Results Found</noresultsfoundlabel>

        <resultsfoundlabel>Results Found</resultsfoundlabel>

        <alllayers>All Layers</alllayers>

        <layersremaining>layers remaining:</layersremaining>

        <copylabel>Copy results to clipboard</copylabel>

    </labels>

    <layers onlythese="true">

        <layer>

            <name>Fields</name>

            <id>3</id>

            <url>http://10.14.195.34:6080/arcgis/rest/services/General/General/MapServer</url>

            <fields>

                <field name="Field_ID" alias="Field Name"/>

                <field name="Shape.STLength()" alias="Perimeter " numberformat="1||."/>

            </fields>

            <links/>

            <zoomscale>2000</zoomscale>

            <forcescale>true</forcescale>

        </layer>

        <layer>

            <name>Camps</name>

            <id>4</id>

            <url>http://10.14.195.34:6080/arcgis/rest/services/General/General/MapServer</url>

            <fields>

                <field name="Name" alias="Name"/>

            </fields>

            <links/>

            <zoomscale>2000</zoomscale>

            <forcescale>true</forcescale>

        </layer>

        <layer>

            <name>Stations</name>

            <id>5</id>

            <url>http://10.14.195.34:6080/arcgis/rest/services/General/General/MapServer</url>

            <fields>

                <field name="Name" alias="Name"/>

            </fields>

            <links/>

            <zoomscale>2000</zoomscale>

            <forcescale>true</forcescale>

        </layer>

        <layer>

            <name>Well Locations</name>

            <id>6</id>

            <url>http://10.14.195.34:6080/arcgis/rest/services/General/General/MapServer</url>

            <fields>

                <field name="Alias" alias="Name"/>

            </fields>

            <links/>

            <zoomscale>2000</zoomscale>

            <forcescale>true</forcescale>

        </layer>

        <layer>

            <name>Generators</name>

            <id>8</id>

            <url>http://10.14.195.34:6080/arcgis/rest/services/General/General/MapServer</url>

            <fields>

                <field name="Name" alias="Name"/>

            </fields>

            <links/>

            <zoomscale>2000</zoomscale>

            <forcescale>true</forcescale>

        </layer>

        <layer>

            <name>Helipads</name>

            <id>9</id>

            <url>http://10.14.195.34:6080/arcgis/rest/services/General/General/MapServer</url>

            <fields>

                <field name="Name" alias="Name"/>

            </fields>

            <links/>

            <zoomscale>2000</zoomscale>

            <forcescale>true</forcescale>

        </layer>

        <layer>

            <name>Villages</name>

            <id>10</id>

            <url>http://10.14.195.34:6080/arcgis/rest/services/General/General/MapServer </url>

            <fields>

                <field name="Name" alias="Name"/>

            </fields>

            <links/>

            <zoomscale>2000</zoomscale>

            <forcescale>true</forcescale>

        </layer>

        <layer>

            <name>Roads</name>

            <id>2</id>

            <url>http://10.14.195.34:6080/arcgis/rest/services/General/General/MapServer</url>

            <fields>

                <field name="Alias" alias="Name"/>

            </fields>

            <links/>

            <zoomscale>2000</zoomscale>

            <forcescale>true</forcescale>

        </layer>

    </layers>

    <symbols>

        <simplefillsymbol color="0x448ccb" alpha="0.4" style="solid">

            <outline color="0x448ccb" alpha="0.8" width="2" style="solid"/>

        </simplefillsymbol>

        <simplemarkersymbol color="0x448ccb" alpha="0.8" style="circle" angle="0" size="12">

            <outline color="0xffffff" alpha="0.8" width="1" style="solid"/>

        </simplemarkersymbol>

        <simplelinesymbol color="0x448ccb" alpha="0.8" width="2" style="solid"/>

        <picturemarkersymbol url="assets/images/i_info.png" height="30" width="30" xoffset="0" yoffset="0" angle="0"/>

    </symbols>

</configuration>

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Mohammed,

  Try changing the only these property to false and see if you are getting results.

<layers onlythese="false">

0 Kudos
MohammedKhamis
New Contributor II

Robert ,

it is the same problem , no results ..

many thanks

regards,

mkn

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Mohammed,

   If that is the case then you have something extremely wrong. Do you have the "shape" and "ObjectId" fields visible in the map services for each of your layers in the MXD before you publish your service? Can you access your services using the rest endpoint in a browser?

0 Kudos
MohammedKhamis
New Contributor II

Dear Robert,

Many thanks for helping ..

my problem as you say about (the "shape" and "ObjectId" fields visible in the map services for each of your layers in the MXD before you publish your service)

Many thanks

0 Kudos