Zum Hauptinhalt gehen

Using Arcade to Display Clickable Attachment Links in Map Tips

Kommentare

5 Kommentare

  • Permanently deleted user

    Hi Denise. I just tried this and getting same result as you.

     

    As a test, I tried a simpler arcade expression like this:

     

    return Count(Attachments($feature))

     

    That should return a count of how many attachments for each feature, but nothing is returned.

     

    FYI, tried this with a map service as well as feature service.

     

    So, it seems the Attachments function is not working...

    0
  • Denise Beckham

    Thanks for your reply, Zorba. I tried something similar to your expression, but it didn't work for me either. I suspect it's because the service is secured. It's frustrating, but I did manage a workaround. The data for this particular service is stored in SQL, so I used a Data Link to the attachment table to get a count of attachments. Now the users will at least know when to look for attachments.

    0
  • Permanently deleted user
    Good idea with using data links. That could come in handy for some of our apps as well. Thanks.
    0
  • Permanently deleted user

    Did anyone get this to work? Same issue here. Unsecured service, tried both map service and feature service. returns 0 with Count(Attachments($feature)) but shows attachments below in the Attachments section so they are definitely there

    0
  • Denise Beckham

    Hi Chelsea,

    Unfortunately, I have not gotten this to work. I looked at the URL of an attachment by using the link in the Attachments section. I believe we would need some way of getting the token to build it into the URL. As far as I can tell though, Arcade doesn't have the capabilities to grab the token.

    0

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