Select to view content in your preferred language

PopupRenderSkin - Determine if feature has attachments

1908
2
01-23-2013 05:04 PM
RhettZufelt
MVP Notable Contributor
Is there a way to determine if a feature has attachments?

In the popuprendererskin, If I test for layerDetails.hasAttachments, it will always report true if the "layer" has attachments enabled.

I would like to test to see if the current feature has attachments, if so, I would not add anything to the mediaBrowser.  However, if there is no attachment, then I want my media to be appended to the popup.

anyway, would be pretty simple if there is a way to tell if the feature I just clicked on has attachments (uploaded, not just enabled) or not.

Any suggestions?

R_
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Rhett,

   I have never found a way to do that without a round trip to the server, which I determined was not cost effective for the minor gain I would receive.
0 Kudos
RhettZufelt
MVP Notable Contributor
That's what I was afraid of.

Of course, if ESRI ever comes up with a way to make a many:many attachment relate (without having to manually enter every attachment) it wouldn't be an issue.

Still trying to find a way to display multiple images for a dynamic feature with the built in tools.

Thanks again for the input,

R_
0 Kudos