Select to view content in your preferred language

Identify Widget version 2.4.0.1 for FlexViewer 2.4 - Issue with Hyperlink

2658
18
09-26-2011 08:54 AM
MichaelHanna
Deactivated User
Robert -

First off, this is an awesome widget.  However, I am having an issue with the widegt with regards to hyperlinks.  I see from the documentation that I can define via <linkfield></linkfield> a feature class attirbute that contains a URL and should be able to access that URL by clicking.  My issue is two fold. 

1.  The attribute I am defining is titled, fittingly enough, HYPERLINK and contains a UNC path to a pdf document containing additional information on the particular feature.  The HYPERLINK attribute is often returned as NULL in the Identify Results window even though there should be a URL there.

2.  When I do use <linkfield></linkfield>, then the HYPERLINK attribute is not even listed in the Results window.  For Issue #1 above, I did not define the <linkfield></linkfield>.

I am running a Flex Viewer 2.4 webservice off an ArcGIS 10 SDE database.

Can you think of what I might be doing incorrectly or have I identified a previously unidentified bug (and if so, do I get a prize? )?

You help would be greatly appreciated.

Michael Hanna
Middlesex Water Company
Tags (2)
0 Kudos
18 Replies
GiosiaPoma
Regular Contributor
Hi Robert,
I've found a problem about the skinClass. If you don't set

popUpRenderer.setStyle("skinClass", Class(widgets.Identify.PopUpRendererSkin));


You still use the default renderer. With this line at showHighlight method in IdentifyWidget.mxml the object use your renderer.

Thank you!
0 Kudos
Johan_vanBallegooijen
Emerging Contributor
Hello,

I'm using the widget and i think i'ts a fine widget.
Now i'm trying to use the option not to show all layers but it will not work. What can i do wrong?

The code i used is:
<layers onlythese="true">
  <layer>
   <name>BAG</name>
   <fields>BAG_LIGPLAATSEN,BAG_NUMMER001,BAG_PANDEN001,BAG_STANDPLAATSEN,BAG_VBO001,BAG_VBO_POLY</fields>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>Operationele info</name>
   <fields>aardgasstations,ziekenhuizen,buisleidingen,C2000,drinkwaterstations,evides_2011_6_23</fields>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
</layers>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ballegooijen,

   Are those field names the actual alias field names for those layers as the instructions pdf states they need to be?
0 Kudos
Johan_vanBallegooijen
Emerging Contributor
I have used the same field names as in the are in the database. You are talking about a pdf. Where can i find this?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Johan,

   The Identify Widget XML Configuration.pdf that is in the same zip file where you got the widget from.

http://www.arcgis.com/home/item.html?id=39cf66d58c234279ba728c50461a1a89
0 Kudos
Johan_vanBallegooijen
Emerging Contributor
Dear Robert,

I've checked alle the names off the layers in de REST and the are exactly the same now. But no result in the identifyer until now. What else can be wrong?

<layers onlythese="true">
  <layer>
   <name>BAG</name>
   <fields>BAG_VBO,ArcGIS.GISDATA.BAG_VBO_POLY,BAG_NUMMER,BAG_LIGPLAATSEN,BAG_PANDEN,BAG_STANDPLAATSEN</fields>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>Operationele_Info</name>
   <fields>ArcGIS.GISDATA.ZIEKENHUIZEN,Brandkranen OASEN,Brandkranen EVIDES 23-6-2011,AARDGASSTATIONS,C2000,DRINKWATERSTATIONS,UGS,HM_BETUWEROUTE,HM_HSL,HM_LINGELIJN,WAS_SIRENE,MEETPUNT_WVD,BRANDWEERKAZERNE,BUISLEIDINGEN</fields>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
 
</layers>

Best Regards,
Johan.
0 Kudos
JustinStangl
Emerging Contributor
Robert,

Great widget, very useful, I am having only one issue...

Most of the hyperlinks in my XML work properly, all of the hyperlink field alias's are populated in their respective <linkfield>.  There are a few links that do not work(doesn't even show the active hyperlink in the results box) and I think it is because there is an underscore (_) in the field name in the REST.  Is there any way to combat this or customize the source code without changing the schema???

Thank you,

JS
0 Kudos
RhettZufelt
MVP Notable Contributor
As per the pdf, they need to be called out by the name you put in the "label" tag that you used to load them into the operational layers, not the actual REST service name.

R_

Dear Robert,

I've checked alle the names off the layers in de REST and the are exactly the same now. But no result in the identifyer until now. What else can be wrong?

<layers onlythese="true">
  <layer>
   <name>BAG</name>
   <fields>BAG_VBO,ArcGIS.GISDATA.BAG_VBO_POLY,BAG_NUMMER,BAG_LIGPLAATSEN,BAG_PANDEN,BAG_STANDPLAATSEN</fields>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>Operationele_Info</name>
   <fields>ArcGIS.GISDATA.ZIEKENHUIZEN,Brandkranen OASEN,Brandkranen EVIDES 23-6-2011,AARDGASSTATIONS,C2000,DRINKWATERSTATIONS,UGS,HM_BETUWEROUTE,HM_HSL,HM_LINGELIJN,WAS_SIRENE,MEETPUNT_WVD,BRANDWEERKAZERNE,BUISLEIDINGEN</fields>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
 
</layers>

Best Regards,
Johan.
0 Kudos
JustinStangl
Emerging Contributor
I was actually able to solve my problem.  It turns out that a few of the <fields> had attribute table values and hyperlink paths that were not passing through and showing up as blank values next to the field name in the identify results, i had the alias's set exactly and could not figure it out. 

So...
In the xml: I set the <layers onlythese="false"> temporarily.
In Flex Viewer: Identified a feature from the mapservice and looked at the field names in the results.

All of the values that were missing were now visible, but the field names of these particular fields in the results were not displayed as the field alias, but the actual field name in the REST.

For whatever reason, some of the table values and hyperlinks would not appear when using the field alias for the <fields> in the xml.  For the field values that were not working, i entered the actual field names from the REST in the xml, set the <layers onlythese="true">, saved, cleared cache, and all the values and hyperlinks were now appearing.

Im not sure what the reason was, but i dont think (_) underscores were the culprit.

Thanks,
JS
0 Kudos