Select to view content in your preferred language

Identify Widget - Links?

3091
5
03-16-2015 04:27 PM
DarkCanuck
Occasional Contributor

What is the workflow to getting hyperlinks to work in the popup?

I have URLs in a column in my attribute table, I have enabled Hyperlinks in the Properties>Display tab of the layer in ArcMap, but I can't see to get the URL a link when I use the widget in the webapp.

See here - http://i57.tinypic.com/ded02.jpg

Any ideas on what I am doing wrong?

0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus

Ryan,

   Have you read the Identify Widget XML Configuration.pdf? Links are covered on page 5.

0 Kudos
DarkCanuck
Occasional Contributor

I'll take a peek at it, may get a programmer to take a look as it's just a bit over my head. Thanks!

For anyone looking for it, it's found here - https://github.com/rscheitlin/Identify

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Ryan,

   It is included in the download of the widget at

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

In your situation configuring the link is simple just put the report_1_link field name in the links field attribute.

<link includeinresults="false" field="report_1_link" alias=""

                    tooltip="View PDF">

                    <linkprefix />

                    <linksuffix />

                    <iconfield />

                    <iconprefix />

                    <iconsuffix>http://help.arcgis.com/en/webapps/flexviewer/live/assets/images/i_camera.png

                    </iconsuffix>

                </link>

0 Kudos
DarkCanuck
Occasional Contributor

Robert,

Thanks for your help. We're getting close, but need some more guidance. With the following code, we can an icon at the bottom of the pop-up window that links to the correct URL (PDF in this case), the ToolTip shows, but no text appears before it.

What I'm hoping for is simply to have the URL to the PDF clickable (highlighted in yellow below), in whatever form, so someone can click on it to open a new window with that PDF

Below is where we are at....

===============

Capture.JPG

<layers onlythese="true">

        <layer>

            <name>Municipal Boundary</name>

            <id>3</id>

            <url>http://gis.kwl.ca/arcgiswa/rest/services/FBC/FBC/MapServer</url>

            <fields>

                <field name="Name_KWL" alias="Community"/>

                <field name="Flood_Scenario" alias="Flood Scenario"/>

                <field name="Report_1" alias="Report 1"/>

                <field name="Report_1_Link" alias="Report 1 Link"/>

                <field name="Report_2" alias="Report 2"/>

                <field name="Report_2_LInk" alias="Report 2 Link"/>

                <field name="Report_3" alias="Report 3"/>

                <field name="Hydraulic_Models_Report_1" alias="Hydraulic Models Report 1"/>

                <field name="Hydraulic_Models_Report_2" alias="Hydraulic Models Report 2"/>

                <field name="Hydraulic_Models_Report_3" alias="Hydraulic Models Report 3"/>

                <field name="Coastal_AEP_500_Current_0m_SLR" alias="Coastal 500 yr AEP + 0m SLR"/>

                <field name="Coastal_AEP_500_1m_SLR" alias="Coastal 500 yr AEP + 1m SLR"/>

                <field name="Fraser_River_Q500_0M_SLR_NoClim" alias="Fraser River Design Flood with 0m SLR - Upstream Level"/>

                <field name="Fraser_River_Q500_0M_SLR_NoCl_1" alias="Fraser River Design Flood with 0m SLR - Downstream Level"/>

                <field name="Fraser_River_Q500_1m_SLR_Climat" alias="Fraser River Design Flood with 1m SLR and Moderate Climate Change - Upstream Level"/>

                <field name="Fraser_River_Q500_1m_SLR_Clim_1" alias="Fraser River Design Flood with 1m SLR and Moderate Climate Change - Downstream Level"/>

            </fields>

            <links>

  <link includeinresults="true" field="Report_1_Link" alias="View Report 1" tooltip="View PDF Report" popuplinktype="text">

<linkprefix />

                    <linksuffix />

                    <iconfield />

                    <iconprefix />

                    <iconsuffix />

                </link>

  </links>

            <zoomscale>2000</zoomscale>

            <forcescale>false</forcescale>

        </layer>

    </layers>

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Ryan,

   What are desiring is not available. What you have is what is available for the widgets results.

0 Kudos