attribute expression & web app builder & operations dashboard

5300
19
03-13-2018 11:46 AM
Status: Implemented
DamonEisenach
Occasional Contributor

I have noticed "attribute expressions" in web maps do not transfer to web apps or operations dashboards.

Can either this be changed so the attribute expression fields do carry over and can be used by widgets and/or dashboard tools.

Or can someone point me to how I can change the code to use them inside the agol assistant?

I have these in the web map attribute expressions.

DaysOpen{expression/expr0}
DateDiff(date(),$feature.ITEM_DATE_CREATED , day)/86400000

DaystoClose{expression/expr0}
DateDiff($feature.ITEM_DATE_CLOSED,$feature.ITEM_DATE_CREATED , day)/86400000

I have used similar "Date_Time BETWEEN CURRENT_TIMESTAMP - 7 AND CURRENT_TIMESTAMP" in other web maps for filters and that does transfer between apps.

Thanks

19 Comments
SarahScher

It would be useful for the infographic widget to be able to read / visualize arcade expressions created in popups in the associated webmap'

see also: Allow WebAppBuilder and Ops Dashboard to Read Arcade Expressions

AnninaHirschi_Wyss1

Yes, I agree!

My use case is a bit different.

I would like to add the query filters selected by the user into the description of the graph, when using the Infographic Widget on the query output result. This might eventually be done using Arcade.

I was in contact with Esri Technical Support and they logged the following enhancement request, so it would be cool if this idea gets some support from other users:

ENH-000107791: Web App Builder Infographic Widget should have option to generate graph descriptions based on queries.

infographic widget‌

arcade‌

query widget‌

by Anonymous User

i need it too!

hope it will be reality soon...

KevinMWright13

#arcade expressions#arcade

I agree - Building great popups with arcade is wonderful.  But it would be great if those same expressions were available to be sued by applications using the map in which the Arcade was created.

Amanda__Huber

I also agree, this is would be a very beneficial capability. 

AllisonKampbell

I also agree.  I have created an app using Web App Builder where we can digitize and plan new snow plow routes.  I have an arcade expression that calculates the mileage of the new routes.  I want to use the Summary Widget in WAB to sum up the total mileage of routes and I can't use my expression mileage field.  We have to use a calculator to convert the total feet into miles.  It would be nice if that mileage number could popup for the Public Works Supervisor.

Thanks!!

arcade# arcade expression #web-appbuilder

MitchHolley1

Can I get some follow up on this?  The hyperlink in the idea description is not longer available.  Does anyone have any info on this idea?  It would be awesome!

Annina Hirschi Wyss

Sarah Scher

Amanda__Huber

Hi Mitch Holley‌, 

I ran a quick test in WAB using a map that has multiple Arcade Expressions within it, and unfortunately it appears that this has not been implemented yet. 

Arcade Field appearance in the web map pop up: 

Arcade fields missing in WAB field options: 

SarahScher

Hey Mitch Holley-

Unfortunately I don't have an update for you. The link was to a very similar ArcGIS Idea that someone had posted, but they must have since taken it down.

MitchHolley1

Thanks Sarah!