Zum Hauptinhalt gehen

4.3, Anyone tried the new show images in the feature description?

Kommentare

5 Kommentare

  • Kevin Penner

    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
  • Permanently deleted user

    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
  • John Nerge
    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
  • John Nerge
    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
  • Permanently deleted user
    John, I have taken the same approach, and got the same result.  I'm also still trying to get this to work.  
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.