Select to view content in your preferred language

Identify widget doesn't work

2038
10
07-11-2013 05:12 AM
RokCiglic
Deactivated User
Hi!

I have a major problem with the identify widget. I installed Identify widget for App builder (as it is written here: http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#//01m30000004m000000 ), but still it doesn't work. I can see identify widget in widget list and i can also edit it. But when I preview my application and click on my map (raster layers) it doesn't respond. I have identify widget open and i can choos point, line etc., but it just doesn't work.

Do you have any advice?
Thanks
Rok
Tags (2)
0 Kudos
10 Replies
RobertScheitlin__GISP
MVP Emeritus
Rok,

  Tell me more about your raster layer(s) you are trying to identify.

  1. How are they added in your main config.xml?

  2. What does the fields tab for that raster layer look like in ArcMap?

  3. What is the field name you have setup in the IdentifyWidget.xml?

0 Kudos
RokCiglic
Deactivated User
Hi!

1. I published several mxd files with tif raster layers inside as a map service (e.g. air temperature raster files are in one mxd, NDVI index raster files are in another mxd etc.).
Then I added this line for each map service to config.xml file (example for map service with NDVI raster files):
<layer url="http://local:6080/ArcGIS/rest/services/UHIAtlas/Aqua_NDVI_2011/MapServer" label="Normalized Differencial Vegetation Index - NDVI (2011)" visible="false" type="dynamic" mode="onDemand" imageformat="png8"/>

2. Some raster files are floating point (for those I don't have field tab), others are long integer (for example for land cover types i have two fields: Value (type: long, lenggth:9, prec: 9, scale: 0) and Count (double, length: 19, prec.:0, scale:0)).

3. I didn't set up field names in IdentifyWidget.xml (once I tried but without succes).

Please, note: When I started with this application I tested it. I did as written in nr. 1, then I add compiled version of identifywidget folder (wrong step, as you told me later) to widgets folder of my application. And it worked. When i clicked on layer, I received Pixel value: XX and Stretche value: XX. This kind of info I got also for temperature rasters (floating format). But later (I don't know why) this identification stopped working....

Rok
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rok,

  Did you upgrade your ArcGIS Server or did you upgrade the Application Builder site? Something had to have changed from when it did work. Needless to say I need to see how your IdentifyWidget.xml looks and your main config.xml. If you can zip both files and attach them to a post that would help.
0 Kudos
RokCiglic
Deactivated User
No, I haven't. And also I did not change IdentifyWidget.xml. Well, here are both xmls. I hope you'll find what I did wrong.
Thank you.
Rok
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rok,

  Because you have "UHI project partners" layer configured with popups (and popups are listening for map click events) you may have to re-click the point tool on the identify widget to ensure it is activated and has control over map clicks. I was able to take your layers and add them to a 3.3  ArcGIS Viewer for Flex and with the "onlythese" option in the IdentifyWidget set to false I was able to get values from all your raster layers except the "VIIRS night scene image" which is expected because it is an image service and my widget does not support identifying Images Services.

I always recommend specifying the layers and fields like this:
<layers onlythese="true">
        <layer>
            <name>Air temperature at 2am (April)</name>
            <id>0</id>
            <url>http://gismo.zrc-sazu.si:6080/ArcGIS/rest/services/UHIAtlas/Air_temperature_Aqua_Terra_2011/MapServe...</url>
            <fields>
                <field name="Stretched value" alias="Stretched value" />
                <field name="Pixel Value" alias="Pixel Value " />
            </fields>
            <links />
            <zoomscale>15000</zoomscale>
            <forcescale>true</forcescale>
        </layer>
        <layer>
            <name>Air temperature at 10am (April)</name>
            <id>1</id>
            <url>http://gismo.zrc-sazu.si:6080/ArcGIS/rest/services/UHIAtlas/Air_temperature_Aqua_Terra_2011/MapServe...</url>
            <fields>
                <field name="Stretched value" alias="Stretched value" />
                <field name="Pixel Value" alias="Pixel Value " />
            </fields>
            <links />
            <zoomscale>15000</zoomscale>
            <forcescale>true</forcescale>
        </layer>
But then you would have to do this for all your layers you want to identify.
0 Kudos
RokCiglic
Deactivated User
Robert,
I tried with your code. I tried also with onlythese set to true and false and also I removed layers with pop up windows. But no result.
I have App Builder 3.3. ArcGIS server 10.1, ArcGIS 10.1, Identity widget 3.3. I also install the widget correctly (with adding widget for app builder). I don't know why it worked once (with compiled version). I haven't used any update since i installed all these software.
Do you have any other ideas what could go wrong? I also tried with publishing a new service and making a new application...

Rok
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rok,

   I would say you get the latest Identify Widget which is 3.3.2 and then you need to uninstall the ArcGIS Viewer for Flex - Application Builder. Then to be sure and clean up any files left behind from it, you can delete the C:\Users\your user name\AppData\Roaming\com.esri.ags.AppBuilder3.0.1 folder and any other com.esri.ags.AppBuilder3.0.x folders found there. Next reinstall the AppBuilder-3.3.air and re-add the identify widget using the advanced setting manage custom widgets,  then create a new application (again).

Here is a screenshot of the widget working properly with your mapservices
[ATTACH=CONFIG]25885[/ATTACH]
0 Kudos
RokCiglic
Deactivated User
I tried (reinstall, deletion of those folder).
Still, it doesn't work. Is it something wrong with xml of widget? Namely, after I import identify widget in application bulider and select it in my application, two xml's appear in folder  ...\widgets\Identify. One is IdentifyWidget.xml and the other one is IdentifyWidget_1.xml. I tried to set them both in config.xml file, but there is no difference (automaticaly the IdentifyWidget_1.xml is set in config file).

Rok
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rok,

   The IdentifyWidget_1.xml is what the app builder produces. Can you zip this file and attach it to a post for review?
0 Kudos