Problem with link icons in Identify Widget 3.6.8 for Flex

1777
4
Jump to solution
10-30-2014 12:50 PM
BarnabyRockwell
Occasional Contributor III

Hi Robert,

I cannot get custom link icons to be displayed in the ID results.  Only the default icons display.

Although I can access the link icon (attached to this post) via this link:

http://myserver/assets/icons/PDF_icon_15p.jpg

the following xml will not bring up that icon:

<layer>
<name>Hyperlinked WSA polygons - Nevada</name>
<id>0</id>
<url>http://myserver/ArcGIS/rest/services/usmin_demo/wsa_overview_web/MapServer</url>
<fields>
<field name="wsa_name" alias="Wilderness Study Area"/>
<field name="high_res_min" alias="Resources (high res)"/>
<field name="mod_res_min" alias="Resources (moderate res)"/>
<field name="usgs_pub" alias="USGS report"/>
<field name="usbm_pub" alias="USBM report"/>
<field name="pub_other" alias="Other report"/>
<field name="usgs_pdf_link" popuponly="true" alias="USGS report link"/>
<field name="usbm_pdf_link" popuponly="true" alias="USBM report link"/>
<field name="pub_other_pdf" popuponly="true" alias="Other report link"/>
</fields>
<links>
<link includeinresults="true" field="usgs_pdf_link" alias="USGS report link" tooltip="Link to USGS report" popuplinktype="image">
<linkprefix/>
<linksuffix/>
<iconfield>PDF_icon_15p</iconfield>
                <iconprefix>http://myserver/assets/icons/</iconprefix>
<iconsuffix>.jpg</iconsuffix>
</link>
<link includeinresults="true" field="usbm_pdf_link" alias="USBM report link" tooltip="Link to USBM report" popuplinktype="image">
<linkprefix/>
<linksuffix/>
<iconfield>PDF_icon_15p</iconfield>
<iconprefix>http://myserver/assets/icons/</iconprefix>
<iconsuffix>.jpg</iconsuffix>
</link>
<link includeinresults="true" field="pub_other_pdf" alias="Other report link" tooltip="Link to other report" popuplinktype="image">
<linkprefix/>
<linksuffix/>
<iconfield>PDF_icon_15p</iconfield>
<iconprefix>http://myserver/assets/icons/</iconprefix>
<iconsuffix>.jpg</iconsuffix>
</link>
</links>
<zoomscale>2000</zoomscale>
<forcescale>true</forcescale>
</layer>

Am I doing something wrong?  I also tried popuplinktpe="text" and that doesn't help.

Thanks in advance,

Barnaby

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Barnaby,

  If "PDF_icon_15p" is not the name of an actual field that contain the string value that you want to concatenate with the iconprefix and iconsuffix then you need to more it all to the iconprefix or iconsuffix tags.

</link>

    <link includeinresults="true" field="pub_other_pdf" alias="Other report link" tooltip="Link to other report" popuplinktype="image">      

    <linkprefix/>

    <linksuffix/>

    <iconfield></iconfield>

    <iconprefix></iconprefix>

    <iconsuffix>http://myserver/assets/icons/PDF_icon_15p.jpg</iconsuffix>

</link>

View solution in original post

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus

Barnaby,

  If "PDF_icon_15p" is not the name of an actual field that contain the string value that you want to concatenate with the iconprefix and iconsuffix then you need to more it all to the iconprefix or iconsuffix tags.

</link>

    <link includeinresults="true" field="pub_other_pdf" alias="Other report link" tooltip="Link to other report" popuplinktype="image">      

    <linkprefix/>

    <linksuffix/>

    <iconfield></iconfield>

    <iconprefix></iconprefix>

    <iconsuffix>http://myserver/assets/icons/PDF_icon_15p.jpg</iconsuffix>

</link>

0 Kudos
BarnabyRockwell
Occasional Contributor III

Hi Robert,

Got it.  Works perfectly now! 

Untitled.jpg

Many thanks!

Best regards,

Barnaby

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Barnaby,

  BTW here is a png of the pdf icon so that you don't get the white background.

BarnabyRockwell
Occasional Contributor III

Awesome, thank you very much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 

Untitled.jpg

0 Kudos