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
Solved! Go to Solution.
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>
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>
Hi Robert,
Got it. Works perfectly now!
Many thanks!
Best regards,
Barnaby
Awesome, thank you very much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!