Select to view content in your preferred language

Hyperlink does not work in Popup Wiget

695
4
11-09-2010 06:56 AM
NeilMillward
Regular Contributor
I am trying to link to a pdf document via the linkfield on the popup window.

I am able to see the url to the document in the popup window but I am unable to click on it.

This is the portion of my config.xml file that references the popup wiget.

<layer label="Centerline Ties" type="Feature" visible="true" alpha="1"
                   info="widgets/InfoTemplates/SimpleInfoWinWidget.swf"
                   infoconfig="widgets/InfoTemplates/IWT_Centerline_Ties.xml"
                   url="http://gis.cityoforange.org/ArcGIS/rest/services/clTiePoints/MapServer/0"/>

I have a field named WEBSITE in my centerline tie points layer that contains the full url to the particular document eg:

http://gis.cityoforange.org/gisdata/images/centerline_ties/ct-3246_maplelemon.pdf

I have tested the link and this does not seem to be the problem.

This is the info wiget template that I am using called IWT_Centerline_Ties.xml.

<?xml version="1.0" ?>
<configuration>
    <fields>CT_NUM,LOCATION,WEBSITE</fields>
    <titlefield>CT_NUM</titlefield>
    <linkfield>WEBSITE</linkfield>
    <zoomscale>25000</zoomscale>
</configuration>

I am hoping that someone can help me figure this out. I am new to flex but I think to hypelink to a document or website from the popup window should be easy to do.

Thanks
Tags (2)
0 Kudos
4 Replies
TorstenSchramm
Regular Contributor
Hello,

the linkfield don't work in the SimpleInfoWinWidget. You can use the InfoPopupWidget.

"
Simple Info Window Widget is generally used to only display simple attribute data. Info Popup Widget can display attribute data, PLUS it supports link fields - fields that contain URLs to additional data or images. The two types are distinguished based on whether the <linkfield> tag is present in the widget XML configuration "

Torsten
0 Kudos
NeilMillward
Regular Contributor
Hi Torsten,

Thanks for the advice, however when I change the code in my config.xml to use the InfopopupWidget.swf and I click on my point, nothing happens.

This is the revised code:

<layer label="Centerline Ties" type="Feature" visible="true" alpha="1"
info="widgets/InfoTemplates/InfoPopupWidget.swf"
infoconfig="widgets/InfoTemplates/IWT_Centerline_Ties.xml"
url="http://gis.cityoforange.org/ArcGIS/rest/services/clTiePoints/MapServer/0"/>

Is there something else that I am missing?

Thanks
0 Kudos
TorstenSchramm
Regular Contributor
it only works with the query widget or the search widget.
But in the source code of the simpleinfowidget you can see some code to use the linkfield in the next release (hopefully) of the flexviewer
0 Kudos
deleted-user-NnRwwd8ols89
Deactivated User
it only works with the query widget or the search widget.
But in the source code of the simpleinfowidget you can see some code to use the linkfield in the next release (hopefully) of the flexviewer


is there no way at all to use the InfoPopupWidget on a feature layer without running a query/search?!
0 Kudos