4.3, Anyone tried the new show images in the feature description?
I was looking to show how many attachments were available for my feature and stumbled across this on page 37 of the Essentials 4.3 admin guide:
I tried to set it up and use it in my HTML5 viewer without success. Has anyone else been able to get it to work?
I set mine up like this (took out https://): <img src="{MapServiceUrl}/{LayerId}/{OBJECTID}/attachments/{PHOTOID}?token= {MapServiceToken}"
Looks like I can't get the token {PHOTOID} and even if I hand enter it with an appropriate ID it still fails.
From the manual
/customer/servlet/servlet.FileDownload?file=00P6000000em1c1EAA
-
PHOTOID or another field which has the attachment ID needs to be contained inside the feature class you are trying to show attachments for. PHOTOID is not an internal utility token to Essentials as {MapServiceToken} is.
0 -
Well, that makes more sense than what I was trying to think of. So once a photo is attached, populate the attribute of the feature with OBJECTID of that attachment. Any thoughts on making this a utility token in HTML similar to the silverlight token of {AttachmentCount}. Possibly only making it accessible in the description for Feature Details Compact View since the link is already there if it has attachments.
Thanks again for clarifying.
Marshall
0 -
Any tips on how to get the attachment ID and calculate a new field with it so it can be used in the feature description? 0 -
I'm still trying to get this to work. I created a new field called PhotoName to store my photo name in. Here's the syntax I'm using per the GE 4.4 admin guide. Am I missing something? The photo still won't show, and when I try to inspect the image URL I get a "Request is not valid" error.
<img src="{MapServiceUrl}/{LayerId}/{OBJECTID}/attachments/{PhotoName}?token={MapServiceToken}" alt="Image" height="200px" width="200px">0 -
John, I have taken the same approach, and got the same result. I'm also still trying to get this to work. 0
Please sign in to leave a comment.
Comments
5 comments