Select to view content in your preferred language

Identify Widget for FlexViewer 2.1

67061
266
09-23-2010 11:34 AM
RobertScheitlin__GISP
MVP Emeritus
All,

   I have been waiting for the Final release of the FlexViewer 2.1 before I started to push out some widgets I have been working on.

Here is my Identify Widget for Flex Viewer 2.1. I have tested to ensure proper functioning with FlexViewer 2.1 and am now releasing it to you since the API Team did not get one into the FlexViewer.

Here is the link:

http://www.arcgis.com/home/item.html?id=39cf66d58c234279ba728c50461a1a89

More FlexViewer 2.1 widgets to come stay tuned...
Tags (2)
0 Kudos
266 Replies
EmilyLaMunyon
Deactivated User
I think I figured out the problem. I had preload="open" added to my config.xml, because I wanted the window to be visible upon opening. When I deleted that from the code, the cursor disappeared. Sorry, I should I have caught that earlier, I did not know it was going to cause problems. Everything seems to be working now, thanks so much for putting up with me!

Emily
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Emily,

   If I remember correctly this is a bug in the viewer that you are experiencing when the preload="open" is used under certain circumstances.
0 Kudos
WillHughes1
Frequent Contributor
Robert,

You helped me out with an earlier version to specify one layer in the .mxml file.
I just downloaded and added the latest version 2.1.6.
I thought that would eliminate the need to edit the .mxml file since you added onlythese="true" to the .xml file.
I tried it out but it still returns id results from all of my layers.
So I went into the .mxml code and specified the layer I want to id, but it is still showing all layers when I id a feature.
Also I am getting no results (values) in the layer that is in the identify.xml file (Pressure Hydrants)

<layers onlythese="true">
  <layer>
   <name>Pressure Hydrants</name>
   <fields>FACILITYID,OWNER,INSTALLDATE,ELEVATION</fields>
   <linkfield>FACILITYID</linkfield>
   <linkprefix>http://localhost:8500/fireflow_test.cfm?PRESSID=</linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>1500</zoomscale>
   <forcescale>true</forcescale>
  </layer>
</layers>

The layer I want to id is a layer within a map service. ID=1

Also I cannot get the hyperlinks to work. The link prefix is as above, and I assume that it gets attached to my linkfield (FACILITYID) to built the URL., ex.  http://localhost:8500/fireflow_test.cfm?PRESSID=FACILITYID.

I hope this makes sense. see attached .xml .mxml config.xml files.

Thanks.

Will
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Will,

   I am having a hard time duplicating your issue... With the new 2.1.6 version unmodified I am able to limit mu identify results to only the one layer I specify in my XML...

Louisville Landbase is a map service in my app as specified below
<layer label="Louisville Landbase" type="dynamic" visible="true"
                   alpha="0.4"
       url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/MapServer"/>

and in my IndetifyWidget.xml I use:
<layers onlythese="true">
  <layer>
   <name>Zoning</name>
   <fields>ZONING_NAME, ZONING_TYPE</fields>
   <linkfield></linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
 </layers>

And the only thing that is returned is zoning results... I am not sure what you or I am missing here.
0 Kudos
WillHughes1
Frequent Contributor
Robert,

I figured it out. Since I recreated my flex project I forgot to add the IdentifyWidget.mxml to my project. Once I did that it worked perfectly.

Sorry.

Will

BTW - the modifications to the new tool are great. Now I just need to figure out how to format the data I am pulling out of my coldfusion datasource.

Thanks.
0 Kudos
JakeAalfs
Deactivated User
Rob,

Great Widget. I have it working for data features that are polygons, but cannot get points or lines to work. Any ideas on what is going on?

Jake
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jake,

   First I have heard of this... As you can test on the sample site

http://gis.calhouncounty.org/IdentExample/index.html?config=config-identify.xml

It works with points just fine. Can you post your IndentifyWidget.xml?
0 Kudos
JakeAalfs
Deactivated User
Here it is. I've tried to troubleshoot any data differences and the only thing that might make a difference is that the Material Field has a data domain. The other fields do not.
0 Kudos
JakeAalfs
Deactivated User
Sorry forgot to zip it.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jake,

   Is this how the layer's name appears in your REST Services directory, cppfpm.DBO.Buildings?
0 Kudos