Arcade - Popup Profile, define global

552
1
04-25-2019 11:15 AM
danbecker
Occasional Contributor III

ArcGIS Enterprise 10.7.

I have an Arcade script that generates a datasheet ID and displays it in the popup title. Users manually type the datasheet ID into the correct field when entering a new feature in Collector. This is obiv. a workaround because Arcade cannot calculate field values in Collector...

But, it seems like the Arcade script is called each time a user types something into an attribute field.

Is there any way to define a true global variable in the "Popup" Profile? Like $map, $feature, ect.. Something like $feature["popupGlobal"] that could be created in the Attribute Expression would be really nice.

1 Reply
XanderBakker
Esri Esteemed Contributor

Arcade expressions are relatively new in ArcGIS and many people are requesting additional functionality like:

  • ways to store an expression in ArcGIS Online
  • being able to define an Arcade expression that allows for a parameter so that a single expression could be used for multiple attributes
  • being able to "schedule" Arcade expressions (like attribute rules in Enterprise)
  • more and better support for the expressions for the Field Apps (Collector, Survey123, Explorer, Workforce, etc) and Dashboards and the widgets in WAB

Probably the best way to suggest an improvement is to create an idea and have people vote this idea up. Many enhancements in ArcGIS are due to suggestions made by the user community using https://community.esri.com/community/arcgis-ideas

0 Kudos