How to Display Attachments (ArcGIS Viewer for Flex)?

5263
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
@rscheitlin

I do have a question about how the widget decides on how large the image within the info bubble will be. It appears to be in relation to how long the text string is but I am not sure. Is there there a way to standardize the way images are displayed?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Chris,

   If you look in the AttRelateInfoWinWidget.mxml line 595 is where the image element begins and the maxWidth is set there you can hard code a value if you want to standardize it.
0 Kudos
ChrisBrannin
Occasional Contributor
But then does the whole project need to be re-compiled? I am also assuming that because it is set as a percent I can also set it as a pixel value? (sorry if these are dumb questions)
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Chris,

   Yep,  you will have to recompile and yep, you can use pixel values (i.e. 400)
0 Kudos
ChrisBrannin
Occasional Contributor
I figured as much, thanks again for the help!
0 Kudos
LizDaRos
Occasional Contributor
Would this be possible with the Sample Flex Viewer 1.3? ...Showing the attachments using either the identify widget or the search widget?
Thanks~
0 Kudos