Select to view content in your preferred language

Identify widget wont show hyperlink

3913
40
06-09-2010 01:37 PM
ShawnKraft
Occasional Contributor
I have a virtual directory set up to where my plats are.  They are in .tif format but I do have one in .pdf format to use to test this widget.  

                                <descriptionlabel>Use the identify tool to identify features on the map:</descriptionlabel>
  <pointlabel>Identify</pointlabel>
  <clearlabel>Clear</clearlabel>
  <loadinglabel>Loading...</loadinglabel>
  <selectionlabel>Features Identified:</selectionlabel>
</labels>
<layers>
  <layer>
   <name>Lot</name>
   <linkfield>PLATLINK</linkfield>
  </layer>
  <layer>
   <name></name>
   <linkfield></linkfield>
  </layer>
</layers>
</configuration>

Not sure why this isn't working.  I modified the identifywidget.xml, do I need to modify anything else to get this to work? Might be easier to just explain what to do and I will do it per the instructions and see if I missed anything.
Tags (2)
0 Kudos
40 Replies
RobertScheitlin__GISP
MVP Emeritus
Shawn,


    The standard Identify widget does not use a layers element in it's xml and neither does the ESA version from the 1.3 Sample Flex Viewer...

So what identify are you working with?
0 Kudos
ShawnKraft
Occasional Contributor
I have used several versions posted in various places on this forum.  I saw a couple you had posted and tried to use them.  I must be doing something wrong.  The identify tool will work, it just doesn't change the url to underlined so it is clickable to open the document.  I pretty much did everything people have said to do in other posts as far as making sure the shp and fid fields are visible.
0 Kudos
ShawnKraft
Occasional Contributor
Should I replace the one in the esa folder and the flexviewer folder?  I only replaced the one in the flexviewer folder not the esa one.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Shawn,

   I am pretty sure I created an IdentifyWidget that uses hyperlinks but I have created a half dozen or so versions of the identify tool so it is hard to tell which one you are using. Probably best for you to attach the mxml and xml code you are using so I can see if you are using one that supports hyperlinks. The original IdentifyWidget does not support hyperlinks at all.
0 Kudos
ShawnKraft
Occasional Contributor
<?xml version="1.0" ?>
<!--
////////////////////////////////////////////////////////////////////////////////
//
// Copyright © 2008 - 2009 ESRI
//
// All rights reserved under the copyright laws of the United States.
// You may freely redistribute and use this software, with or
// without modification, provided you include the original copyright
// and use restrictions.  See use restrictions in the file:
// <install location>/FlexViewer/License.txt
//
////////////////////////////////////////////////////////////////////////////////
-->
<configuration>
<identifylayeroption>top</identifylayeroption>
<identifytolerance>5</identifytolerance>
<zoomscale>5000</zoomscale>
<labels>
  <identifylabel>Identify</identifylabel>
  <resultslabel>Results</resultslabel>
  <descriptionlabel>Use the identify tool to identify features on the map:</descriptionlabel>
  <pointlabel>Identify</pointlabel>
  <clearlabel>Clear</clearlabel>
  <loadinglabel>Loading...</loadinglabel>
  <selectionlabel>Features Identified:</selectionlabel>
</labels>
<layers>
  <layer>
   <name>Lot</name>
   <linkfield>PLATLINK</linkfield>
  </layer>
  <layer>
   <name></name>
   <linkfield></linkfield>
  </layer>
</layers>
</configuration>
0 Kudos
ShawnKraft
Occasional Contributor
here it is.
0 Kudos
ShawnKraft
Occasional Contributor
As far as I understand it, all I need to do is replace the xml/mxml files in the flexviewer/widgets folder.  Unless I need to replace the ones in the esa folder as well.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Shawn,

   OK so I found that version of the IdentifyWidgets and it looks like I added the ability to specify which fields for which layers are returned and the field that has hyperlink info in it. So all you should need is to make sure that your PLATLINK field has a full url location in it like "http:\\gislap134\images\image1.jpg".
0 Kudos
ShawnKraft
Occasional Contributor
It does however, I have the / instead of \ like I should in the hyperlink field ugh.  I didn't notice that until I saw what you typed.  I'm gonna change it real quick n see if it works. Thanks.  Will let you know if it works.
0 Kudos