Select to view content in your preferred language

Identify Widget for FlexViewer 2.1

58754
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
JasonHansel
Emerging Contributor
Tod,

   I seem to be missing what you are wanting here...

Well what you are saying here has nothing to do with what esri is telling you about visible layers.

If you set the identifylayeroption to all than you should get just that all layers regardless.


Robert,
We are trying to do an identify on layers that are not turned on in the .MXD that is fueling the AGS Map Service.

For Example:
We might have a group layer called 'Fauna' and this group player contains 12 layers but only 2 of those layers are turned on in the .MXD/Map Service. We do not want to over populate the Flex Viewer when this service is added, so we only display some larger boundaries. However, we would like our users to be able to turn on a layer and identify the attributes. The widget works good for layers that are turned on by 'Default' but not for invisible or turned off layers.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jason,

   Have you tried changing the IdentifyWidget.xml's identifylayeroption to all instead of visible which is the default?
0 Kudos
JasonHansel
Emerging Contributor
Jason,

   Have you tried changing the IdentifyWidget.xml's identifylayeroption to all instead of visible which is the default?


Robert,
Could you provide an example of how you are changing this please. Is it only in one place? Our Flex Developer has made this change and still no results. We are also using 443 (https).
0 Kudos
JasonNielsen
Regular Contributor
I was wondering if anybody knows it is currently possible in the Identify Widget to alias the Linkfield.

We have some URLs in our mapservices that are quite long and i was hoping i could alias the URL in the popup to something short like "LINK TO DOCUMENT" instead.

Attached is what is current and what i would like it too look like. Just not sure how to proceed to accomplish this. Anybody have a good starting point on how to do this?

thanks.

jason
0 Kudos
MichaelO_Connor
New Contributor
I am trying to set up a linkfield in the identify widget that opens up a .pdf document in a local network (vs. setting up a linkfield to a URL).

My first attempt was simply setting the linkfield to the attribute table field that included the entire path name to the pdf document:


<layers onlythese="true">
  <layer>
   <name>GWMP_Boundaries</name>
   <fields>Agency_Name, GWMP_Name, GWMP_Date, Plan_Type, GWMP_Hyperlink</fields>
   <linkfield>GWMP_Hyperlink</linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>24000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
 
</layers>

It seemed to work at first glance as the identify widget in ArcGIS Viewer for Flex (2.2) did display the full hyperlink path name when you clicked on a polygon; however, when I actually clicked on the link nothing happened.  The hyperlink works fine in ArcMap but it doesn't seem to want to work in Viewer.

My second attempt was to break up the linkfield with a linkprefix and linksuffix:

<layers onlythese="true">
  <layer>
   <name>GWMP_Boundaries</name>
   <fields>Agency_Name, GWMP_Name, GWMP_Date, Plan_Type, GWMP_File_Name</fields>
   <linkfield>GWMP_File_Name</linkfield>
   <linkprefix>\\Pcdistfs1\CDGIS\PROJECTS\GeologyGroundwaterInvestigations\GGI_CWP_Task1\TEMP\GWMPs\</linkprefix>
   <linksuffix>.pdf</linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>24000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
 
</layers>

although I don't see how this would really change anything since ultimately the path name will be identical to GWMP_Hyperlink.


Any suggestions for how I can set up a hyperlink with the IdentifyWidget that links to a pdf document in a local network?

-Mike
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mike,

   Using UNC paths in a Web app is NEVER recommended. You need to go into IIS and setup a virtual directory so that you will have a URL to using in the link. It is a very simple process.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

The next version is now released.

* 2.5.4 - Scale dependency and group layers are now honored when using the Identify option of visible.
    - Links can now have a tool tip specified.
    - Layer definitions are now honored when set on a layer in Flex Viewer.
    - When you identify multiple results and hover over a result record in the widgets results
       the graphic is highlighted on the screen if you are returning geometry.
    - bug fixed for info popups not closing when you clear the identify results.
    - If you choose not to return geometry than the geometry drawn when identifying features
      is used when hovering over a record in the widgets results list.



Don't forget to click the top arrow (promote) as shown below:
0 Kudos