How to Display Attachments (ArcGIS Viewer for Flex)?

5271
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
Robert,

haha, ya I placed that in there to see what would happen. Let me see if I am actually understanding how this code is working.

<field> displays the fields from the attribute table

<linkfield> is linking to a specified field in the attribute table

the linkfield icon_or_txt_or_img="txt" is connecting to a text which is connected to linkalias. linkalias is being defined here and is not just for a mouse hover over?

linkprefix/suffix can be used if there is no URL in the attribute table

My question is... when I have Hyperlink in the <linkfield> is no longer shows up in the popup. When Hyperlink is only in the <field> tag then it displays a not working url.

Can I please see a similar working example code to what I am trying to do so I can compare?

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

  Have you looked at the Attachment Relate Info Window Widget XML Configuration.pdf in the download?

You can also look at IWT_Cameras.xml in the download as well.
0 Kudos
ChrisBrannin
Occasional Contributor
Robert,

So after reading the PDF while working with you, I realized that the PDF says txt and the IWT_Cameras says text. text seems to be the winning combination because it is working like a dream!

I can't thank you enough for your help on this too!

Cheers
Chris
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Chris,

   Thanks for letting me know about the mistake in the pdf I will get it updated ASAP.
0 Kudos
ChrisBrannin
Occasional Contributor
Robert,

One more question for you. When I link an image to the popup, do I just put another field in the attribute table and linkfield to that? Once it is linked it then clips the image to fit into the popup?

Cheers
Chris
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Chris,

   Yes just add another field that contains the whole url or just the file name and then use the linkprefix and suffix. No it does not clip is resizes to fit.
0 Kudos
ChrisBrannin
Occasional Contributor
Robert,

Again, thank you for your time and aid with this!

Cheers
Chris
0 Kudos
TristanKnowlton
Occasional Contributor II
Hey Robert, very nice widget, I got it running this morning.  Are there any plans in the future to incorporate the new feature attachment capabilities in ArcGIS 10 that allows storage of the attachments directly in the db?

Thanks again for the widget!!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Darryl,

   That's what the attachment portion of this widget uses. I don not have any plans to allow upload of attachments though.
0 Kudos
TristanKnowlton
Occasional Contributor II
Ah, duh.  My bad.  I was thinking that was for something else.  I will just crawl back in my hole now. 

Thanks again.
0 Kudos