How to Display Attachments (ArcGIS Viewer for Flex)?

5270
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
I cannot get images to show up in the info window. I'm using the attrelateinfowindow and have uncommeted the multiimage script and replaced the link with my own server. any ideas as to why this might not be working or am I missing something?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Chris,

   Are your images using an IIS virtual directory and the whole url to the image. You can not use a local file path when using Flash Player.
0 Kudos
ChrisBrannin
Occasional Contributor
Yes I am, I have the images on the server in a similar fashion to the examples. Do I place the images in the suffix and the directory in the prefix? Sorry this is my first time using Flex and I'm still learning the run arounds. Thanks for the help!

Cheers
Chris
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Chris,

   Look at this example:

<multiimagefield linkprefix="http://gis.calhouncounty.org/FlexViewer2.2/assets/images/" linksuffix="" nexttooltip="Next" prevtooltip="Prev">URL</multiimagefield>
0 Kudos
ChrisBrannin
Occasional Contributor
my code looks like this:

http://******/flex/assets/images/
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Chris,

   Hmm. What does the contents of one of your link field look like?
0 Kudos
ChrisBrannin
Occasional Contributor
I was leaving the link field blank.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Chris,

   If you are attempting to use the multiimage portion of this widget than the field has to have data like this example:

Whitehall_1.jpg,Whitehall_2.jpg,Whitehall_3.jpg,Whitehall_4.jpg,Whitehall_5.jpg,Whitehall_6.jpg,Whitehall_7.jpg,Whitehall_8.jpg,Whitehall_9.jpg,Whitehall_10.jpg
0 Kudos