How to Display Attachments (ArcGIS Viewer for Flex)?

5318
35
02-02-2011 04:38 AM
RamonLeal_Pessoa
New Contributor II
How to display attachment on the ArcGIS Viewer for Flex?

I would like to display jpeg images attachments of "OperationalLayers" with "SimpleInfoWindowWidget" or "InfoPopupWidget"...

Is this possible?

How to do?

Thanks!
Tags (2)
0 Kudos
35 Replies
ChrisBrannin
Occasional Contributor
This also does not work. Do I need to have these images in the attributes? This is what my code looks like:

<multiimagefield linkprefix="http://gis.*****/flex/assets/images/img/" linksuffix="globe.png,default.png,Splash.jpg" nexttooltip="Next" prevtooltip="Prev">URL</multiimagefield>

Thanks again for all the help!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Chris,

   Yes for the multiImages to work the values have to come from the attribute field.
0 Kudos
ChrisBrannin
Occasional Contributor
So I having an issue with getting my hyperlinks to actually link to their respected websites. What is happening(or not) when the popup is open the hyperlink shows but is not clickable.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Chris,

  Due to lack of detail, I really can not say... Maybe you should post your xml.
0 Kudos
ChrisBrannin
Occasional Contributor
Robert,

here is the code:
<linkfield icon_or_txt_or_img="txt" linkalias="UWM" linkprefix="http://www4.uwm.edu" linksuffix="/pps/Sustainability/CampusInit/renewable-energy.cfm">Hyperlink</linkfield>

Cheers
Chris
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Chris,

   Can you give me a complete url that should work for this? and an example of that is in the Hyperlink field for one of the features?
0 Kudos
ChrisBrannin
Occasional Contributor
Robert,

This is exactly how it is displayed in the Hyperlink field within the attribute table:

http://www4.uwm.edu/pps/Sustainability/CampusInit/renewable-energy.cfm
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Chris,

   OK then you don't need anything in the linkprefix and suffix then

<linkfield icon_or_txt_or_img="txt" linkalias="UWM" linkprefix="" linksuffix="">Hyperlink</linkfield>


because currently this is what is happening then:

http://www4.uwm.eduhttp://www4.uwm.edu/pps/Sustainability/CampusInit/renewable-energy.cfm/pps/Sustai...
0 Kudos
ChrisBrannin
Occasional Contributor
Robert,

Am I missing where to place the text that I would Like to hyperlink?

<fields>NAME,Type,Hyperlink</fields>
    <titlefield>Type</titlefield>
    <links>
<linkfield icon_or_txt_or_img="txt" txt="Hyperlink" linkalias="" linkprefix="" linksuffix="">Hyperlink</linkfield>
</links>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Chris,

   Here is what you are asking I think.

<fields>NAME,Type,Hyperlink</fields>
<titlefield>Type</titlefield>
<links>
<linkfield icon_or_txt_or_img="txt" linkalias="Click Here" linkprefix="" linksuffix="">Hyperlink</linkfield>
</links> 


There is no such attribute as txt = "".
0 Kudos