Select to view content in your preferred language

can't get "linkprefix" and "linksuffix" attributes to work in XML files

682
4
09-23-2011 10:58 AM
AshleyOwens
Emerging Contributor
I can't seem to get "linkprefix" and "linksuffix" attributes to work in my config files.  I have tried the following examples, but all that is returned is "http://servername/app_folder_name/ONE_LINE". Am I using the wrong type of field? Is there a good resource for the Flex XML documentation?

Example 1:
<linkfield alias="One Line Diagram" linkprefix="http://www.ga-its.com/its/onelines/" linksuffix=".pdf">ONE_LINE</linkfield>

Example 2:
<linkfield alias="One Line Diagram">ONE_LINE</linkfield>
<linkprefix>http://www.ga-its.com/its/onelines/</linkprefix>
<linksuffix>.pdf</linksuffix>

Example3:
<fields>
  <field name="ONE_LINE" alias="One Line Diagram" linkprefix="http://www.ga-its.com/its/onelines/" linksuffix=".pdf"/>
</fields>
<linkfield linkprefix="http://www.ga-its.com/its/onelines/" linksuffix=".pdf">ONE_LINE</linkfield>
Tags (2)
0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   The linkprefix and linksuffix are attributes that are specific to widgets that I have created like the Identify widget and the eSearch. They are not standard for all esri widget, and they are different depending on which one as far as configuring it.

BTW you should be posting this question to the Flex Viewer forum not here.

http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex
0 Kudos
AshleyOwens
Emerging Contributor
I am using Identify & Search widgets; how can I tell if they are your versions?
Sorry for posting in the wrong forum!

Thanks so much for your help!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   Well the only way you would have gotten the Identify Widget is to download it from the code gallery so that one is mine. It has a pdf document (Identify Widget XML Configuration.pdf) that provides you with the exact syntax that is to be used for the links. The search widget is esri's and does not support prefix and suffix for links. The Enhanced Search widget is mine and it does support them and has a detailed pdf document that explains the proper syntax as well.
0 Kudos
AshleyOwens
Emerging Contributor
Thanks so much for the information, and for all the great work you do! 🙂
0 Kudos