We have Enterprise 10.9.1, working with Map Viewer (new). The requirement of my label expression is that it shows the soonest (approaching) date. Candidate values exist in 4 fields. Does arcade have the facility to select the minimum date?
In Python in Pro this was done with an array and min().
Solved! Go to Solution.
The workflow is a bit different when you have a portal vs standalone server. Please check this out.
https://pro.arcgis.com/en/pro-app/latest/help/sharing/overview/map-image-layer.htm
About Sort(), did the help link I provided earlier not help? 😞
Try the Sort() function to see if that helps.
https://developers.arcgis.com/arcade/function-reference/array_functions/#sort
That said, since you have an enterprise server, and your python script works in ArcGIS Pro labeling; you should be able to publish that as a map service (aka map image layer) and consume that as a map image layer in the Map Viewer. Since the drawing will happen on the server side, your python code will just work and give you map showing features labelled with the earliest date/time values.
Thanks. Looking into publishing a map service, even when logged into Portal as our administrator it still shows the server as connection type "User Connection." This page notes Publisher or Administrator Connection required. Publish a map service—ArcGIS Pro | Documentation.
Any more pointers on the former option with Sort() would be much appreciated.
The workflow is a bit different when you have a portal vs standalone server. Please check this out.
https://pro.arcgis.com/en/pro-app/latest/help/sharing/overview/map-image-layer.htm
About Sort(), did the help link I provided earlier not help? 😞
That workflow for sharing the map image to Portal did the trick. Thanks!