Service Description: The options to choose the symbology based on time is not available if the custom Arcade expression is applied in the Symbology pane.
Service ItemId: 7d9e4d84739d445eb1467c076006612b
Has Versioned Data: false
Max Record Count: 1000
Supported query Formats: JSON
Supports applyEdits with GlobalIds: False
Supports Shared Templates: True
All Layers and Tables
Layers:
Description: Download and extract the attached data and add it to ArcMap or ArcGIS Pro.
Review the attached data in ArcMap or ArcGIS Pro. The two fields to focus on are: "Start_Date" (date field) and "Week" (text field)
Publish this feature class to ArcGIS Online.
http://ess.maps.arcgis.com/home/item.html?id=6878c0b7f7464c30a80ffe6ca994c75f
Open the context menu of the Hosted Feature Service from Table of Contents > Configure Popup.
Scroll down to Attribute Expression section > ADD the following expression:
var urgentie = $feature.Urgentie
var urgentie_numeriek = Decode(Urgentie, '1w', 1, '2w', 2, '3w', 3, 5)
var startDate = $feature.Start_date
var Date_resolved_before = DateAdd(startDate, urgentie_numeriek, 'days')
return Date_resolved_before
Click on Test and it will give you a response in the same window > Click OK.
Select the "Change Style" option of the Hosted Feature Service > Select "New Expression" in the "Choose an attribute to show" dropdown menu> Goto Existing tab > Select the expression that we had written earlier > Click OK
The symbology will be shown but the options to set the Symbology based on time/date will not be visible.
If we select the Date field in the "Choose an attribute to show" dropdown menu of the Change Style window the options to set the Symbology based on time/date will be visible again.
Copyright Text:
Spatial Reference: 28992 (28992)
Initial Extent:
XMin: 74514.7995646755
YMin: 426979.656427606
XMax: 119217.604935325
YMax: 449860.713205
Spatial Reference: 28992 (28992)
Full Extent:
XMin: 79139.0835000016
YMin: 417773.305300001
XMax: 114593.320999999
YMax: 448332.7414
Spatial Reference: 28992 (28992)
Units: esriMeters
Child Resources:
Uploads
Info
SharedTemplates
Supported Operations:
Query
Apply Edits
ConvertFormat
Get Estimates