attribute expression & web app builder & operations dashboard

5580
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
MitchHolley1

Thanks Amanda!  Hopefully this will get reviewed soon!

TimFlynn

This would be very helpful.  I'm currently using an expression to convert RTS Parcel IDs into STR Parcel IDs.  The web app I've built is based on finding out whether or not a parcel lies within an Opportunity Zone.  So it would be nice if users could search STR Parcel IDs instead of the RTS format in our data.

KaraUtter

I have added a similar comment here but taking a different approach in my request since it is the permanent fields that the web appbuilder widgets link to: https://community.esri.com/ideas/16558-auto-populate-a-permanent-field-based-on-arcade-expression

I have tagged your comment in my post, as it is related to the same basic issue.

MattWilkie3

I like this idea. It obviates the need to recreate expressions in multiple apps for the same effect (in my current case, showing decimal as percentage).

by Anonymous User

I was really happy to see ArcGIS to start supporting virtual fields and being able to build dynamic fields into their system. I think this has been a thorn in their side for a while, and I am sure that they are "working" on getting this to be more supported across the platform, but I really was hoping that they would have been able to have some sort of work around on operations dashboard. A lot of my statistics are dependent on calculations that I have to manually run. Even if I have to rebuild the calculation using Arcade on the Operations Dashboard end that would be fine, but not even offering the ability to do simple calculations in a data dashboard?

RobinHoughton

Hi all,

I notice these replies are from around a year ago now with no update and there are quite a few other ideas focussed on the same concept. Clearly this is a significant gap in current AGOL functionality- ESRI, any plans or intentions for this to be addressed any time soon?

patrickb
Status changed to: In Product Plan

In ArcGIS Dashboards Beta, Arcade expressions set in a map layer's popup should be respected by a dashboard's Map and Details elements. Also in ArcGIS Dashboards Beta, we have exposed Arcade expressions on lists and indicators for things like value conversions, string manipulation, conditional formatting, etc. (see. blog post). In future releases, we are looking to expand our Arcade capabilities even more. 

patrickb
Status changed to: Implemented

Dashboards now have good Arcade support. We honor attribute expressions set in a map layer's popup in our Map and Details elements. We also have data expressions and formatting expressions. 

https://doc.arcgis.com/en/dashboards/get-started/create-data-expressions.htm

 https://doc.arcgis.com/en/dashboards/create-and-share/advanced-formatting.htm