How do you show attachments in the list in Operations Dashboard

3069
9
07-21-2019 10:44 PM
Beatriz_EulaAngala
New Contributor II

How do you show attachments in the list in Operations Dashboard? I would like to include my photo attachments in the list found in operations dashboard. Similar to a dashboard you created for Property Viewer. https://business.maps.arcgis.com/apps/opsdashboard/index.html#/cae46b785871424fb7453ae51cbc7a83

9 Replies
DennisKaplan
Esri Contributor

To add the photo to the side of the items in the List. 

Go to Configure > List. 

Then click on the Photo Icon.

List Options to add Photo

Almost everything in this list is tagged from items in the attribute table.  in the Photo icon options you will see a URL text box.  Its asking for the URL of the photos related to your items.  I used the attribute field in my data that has the URL for each site photo.  My is called  {IMAGE_URL}. Yours may be different. 

I used the Alignment Left option to put photo to the left.  You will need to adjust the Width, Height, Vspace and Hspace options until you get the desired look.  The red box with the X give you an idea of where the image will be.

List Options to add Photo

Hope this helps. 

Beatriz_EulaAngala
New Contributor II

Hi Dennis,

My photos are attachments and dont show up in the attribute field. Do I need to enable anything or run a tool?

Beatriz_EulaAngala
New Contributor II

JarrettLivesey1
New Contributor II

So Dennis, Beatriz's question about how to handle the pics when they are attachments is the same situation I have, can you elaborate on that process ??  That would be most helpful.

Thanks,

Jarrett Livesey

JarrettLivesey1
New Contributor II

So Dennis, Beatriz's question about how to handle the pics when they are attachments is the same situation I have, can you elaborate on that process ??  That would be most helpful.

 

Thanks,

Jarrett Livesey

BrianFausel
Occasional Contributor III

At least in the JavaScript 3.x Dashboard and Web Maps, it does not appear that you can include attachment photos directly embedded in the dashboard lists. I think Dennis' example has a manually calculated attribute at the parent feature-level (which has to be manually updated as attachments change). There is a way to include a link to the attachments in the lists. Though it's not the most elegant solution because it takes the users to the REST endpoint in a new browser tab.

URL is determined from the REST endpoint of the map service (I used "QueryAttachments" to determine the URL)

https://[[myportal.domain.com]]/server/rest/services/[[foldername]]/[[featureservicename]]/FeatureSe... 

The [[bold]] items above will differ for your environment.

Dashboard attachment link  

0 Kudos
DNVT
by
New Contributor

Hi BrianFausel,

Do you happen to have the full text that you put in the URL input in the screenshot?

Looking what is after {ATTACHMENT....

Thank you!

0 Kudos
BrianFausel
Occasional Contributor III

The full URL is this:

https://[[myportal.domain.com]]/server/rest/services/[[foldername]]/[[featureservicename]]/FeatureServer/[[layerid]]/[[featureObjectID]]/attachments/[[ATTACHMENTID]]

Where all the [[Bold]] entries above will differ in your environment.  [[featureObjectID]] is the ObjectID of the feature layer and [[ATTACHMENTID]] is the unique identifier in the ATTACH table.

Here is how it looks:

https://gis.organization.org/server/rest/services/foldername/featureservicename/FeatureServer/10/23263/attachments/22290

 

dzahsh
by
New Contributor II

Advanced formatting in List options shows the new Attachment Arcade function, but it is greyed out... maybe this means they are working on allowing it soon ?

dzahsh_0-1637345685934.png