Select to view content in your preferred language

Flewviewer Identify Widget more then 1 Link Field

3232
6
12-08-2011 05:42 AM
HarrietMcQuade
Emerging Contributor
Hi,

Does anyone know if there is a way to have more then 1 hyperlink per feature? I have the Advanced Search and Identify widgets in my application that both display a hyperlink. Is there a way to have 2 hyperlink fields???

Harriet
Tags (2)
0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus
Harriet,

   I finally added that ability.

* 2.5.1 - Added the ability to specify multiple links. You can specify that a link field
        is still included in the results. Links can have an alias specified for display
        in the Info Popup, and each link can have its own icon specified.
0 Kudos
HarrietMcQuade
Emerging Contributor
Brillaint! Thanks Robert!
0 Kudos
Erickson_Contract_Surveying_
Deactivated User
Brillaint! Thanks Robert!


Robert,

Could you provide a code example to enable multiple link?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Monty,

   Sure:

        <layer>
            <name>Traffic Cameras</name>
            <id>2</id>
            <url>http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer</url>
            <fields>
                <field name="ONLINE" alias="Camera Online" />
                <field name="DESCRIPTION" alias="Description"
                    popuponly="true" />
                <field name="LAST_UPDATED" alias="Last Updated"
                    popuponly="true" />
                <field name="URL" alias="URL" popuponly="true" />
            </fields>
            <links>
                <link includeinresults="false" field="URL" alias=""
                    tooltip="View Traffic Image">
                    <linkprefix />
                    <linksuffix />
                    <iconfield />
                    <iconprefix />
                    <iconsuffix>http://help.arcgis.com/en/webapps/flexviewer/live/assets/images/i_camera.png
                    </iconsuffix>
                </link>
                <link includeinresults="true" field="ONLINE"
                    alias="get me out of here" tooltip="">
                    <linkprefix />
                    <linksuffix />
                    <iconfield />
                    <iconprefix />
                    <iconsuffix>http://help.arcgis.com/en/webapps/flexviewer/live/assets/images/i_globe.png
                    </iconsuffix>
                </link>
            </links>
            <zoomscale>2000</zoomscale>
            <forcescale>true</forcescale>
        </layer>
0 Kudos
Erickson_Contract_Surveying_
Deactivated User
Thanks Robert.  I edited xml as follows and both links are added but the second link does not work.  I have populated the link field.

<name>Centerline Corridors</name>
   <fields>
    <field name="ANC" alias="ID" />
    <field name="DOC_EXHIBIT_A" alias="Exhibit A" />
    <field name="DOC_ALIGNMENT" alias="Alignment" />
   </fields>
   <links>
    <link includeinresults="false" field="DOC_EXHIBIT_A" alias="" tooltip="Exhibit A Document">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix></iconsuffix>
    </link>
    <link includeinresults="false" field="DOC_ALIGNMENT" alias="" tooltip="Alignment Document">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix></iconsuffix>
    </link>
   </links>
   <zoomscale>5000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Monty,

   Several questions:

  1. What version of the widget are you using? Is it 2.5.1 and that is why you resurrected this very old thread?

  2. Are the field names you are using the actual field names or the aliases form the REST service directory?

  3. Do the contents of those field have a full url to a document or an image on your server?

0 Kudos