A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [arcade]

Use for questions about Arcade expression language used across ArcGIS Platform

Filter by
Sorted by
Tagged with
1
vote
1answer
23 views

Using IF/ELSE IF/ELSE statements in Attribute Expressions for String Fields

I am trying to do build some Attribute Expressions using Arcade and I am having some issues with it returns the else statement. I know that there are features that would return true because I have ...
0
votes
1answer
21 views

Displaying a device which has changed it's connection ID in the last week using Arcade Expression in ArcGIS Online?

I have about 250 devices in a map, but I want to only display devices that have had a certain attribute change within the past week. I have minimal experience with Arcade expressions and cannot find ...
0
votes
0answers
20 views

Can Esri's Arcade language call home (like AJAX)

We're using Esri's collector app and were hoping to use Arcade to make a call to a geoprocessing tool but I'm getting the impression Arcade has no way to call home, it's solely for presentation layer ...
1
vote
0answers
25 views

ArcGIS Online scrape info from a website dynamically

It seems like this is do-able but I don't know what tools would work best. I have a feature service of Parcel data that includes a parcel PIN. Each parcel has a corresponding web page that can be ...
2
votes
0answers
37 views

How to call another Arcade expression?

I have been using Arcade expressions for custom popups. These are being authored in ArcGIS Pro for later deployment to AGOL. These expressions are all being named, can be successfully embedded in ...
0
votes
1answer
26 views

IIF statement semantics Arcade

I'm trying to create a pop-up based on a conditional IIF statement and am struggling with the semantics of arcade. This is my code. (Note: I've tried 10 both in and not in quotes) IIf(IsEmpty($...
0
votes
0answers
27 views

Arcade Script to Link to Attachment Lost in Join

I created a survey using Survey123. The survey produces a table, no points. I then join the table to my existing point feature in ArcOnline. This works great except that I lose the photo attachment ...
3
votes
0answers
35 views

Setting label value for varied symbology by attribute using size as variation

In using ArcGIS Pro 2.4.1, I wanted to have symbology that represented two attributes at one time. This is possible using a variety of symbology setups, specifically, I did the following: Created a ...
1
vote
0answers
58 views

Labeling using Arcade in ArcGIS Online

Advice on using Arcade to make "mimic" the capabilities of Maplex in ArcGIS Desktop or is there a template or "standard" for label placement and scale ranges using Arcade? To specify most of the ...
1
vote
3answers
63 views

ArcGIS Arcade - Scaling numbers from 1000 to $1k and 1000000 to $1M

I have number field (Price) that I would like to: Label numbers between 1000 - 999,999 as $1k - $999k Label numbers >=1,000,000 as $1M Numbers <1000 remain as $1 - $999 so far, I got an iif ...
0
votes
0answers
22 views

How to change field alias for many field in ArcGIS online?

I have a shapefile uploaded to ArcGIS online that contains many fields (~50). When converting to shapefile to prepare for upload, all of the field names were shortened. I would like to create some ...
1
vote
1answer
101 views

Using Arcade to label, using coded values in ArcGIS Pro

I am trying to label features that have coded domains in ArcGIS Pro. In ArcMap the procedure is to use the coded domains in an expression as shown below, but you have to enable the codes using the ...
2
votes
1answer
47 views

ArcGIS Pro calculate field using arcade not working? [closed]

Im trying to calculate a field called "bark t/ha" using the following expression: if ($feature.Barkfuelhaz =="Low"){ return"0"} else if($feature.Barkfuelhaz =="Moderate"){ return"1"} else if($...
2
votes
1answer
153 views

Custom arcade expression to change the colours of text labels on an ArcGIS Online web map?

I have a web map where I am labelling the point features with the values in 2 different text fields (eg."id"-"operation type"). I'd like to change the colour of the text for the "id" field label to ...
1
vote
2answers
88 views

Finding number of days per ID in table using ArcPy?

I need to count the span of days an individual has been observed, from the first til the last observation day. There can be many observations per ID per day and not everyday has observations, hence ...
1
vote
0answers
34 views

Customizing Symbology Based on Time Slider for Time Frame in ArcGIS Online using Arcade?

We have a feature service for gates that have fields for when the gates will be under construction and closed. There are 2 date fields, one for the start of the closure and one for the end of the ...
0
votes
1answer
97 views

Calculating length of field using Arcade?

I have data with this format: 4024-457 and I need to separate the left and right portions from the '-'. The data is not always in that proportion (4 numbers left and 3 to the right) so I need to ...
2
votes
2answers
211 views

Arcade Expression to Intersect Features and add Attribute to Popup

New to Arcade. I have two features in an AGOL map, "SS Parcels" and "SS Zoning". I would like to configure the popup for "SS Parcels" to also display the zoning code from "SS Zoning". It seems like ...
0
votes
1answer
117 views

Using Arcade in ArcGIS Online to customize labeling?

I am trying to clean up the labeling for a city zoning map using ArcGIS Online. To do this I need to trim the property address to only the numeric values, which has been accomplished, but due to ...
0
votes
0answers
68 views

Converting Python to Arcade in ArcGIS Online?

The following python expression can trim street addresses for labeling in ArcMap. I need to convert the expression to Arcade so I can retain the same labeling scheme when pushing my feature layer ...
1
vote
1answer
94 views

Change Symbology of no value in ArcGIS Online

I created web map in ArcGIS Online with point data. I will update one field of attribute which doesn't have any value on it (empty) with random number or text. I just want when I am putting any number ...
0
votes
2answers
208 views

Eliminating empty values using arcade in ArcGIS Portal pop up?

I am attempting to create a conditional arcade expression that will list all of the fields that do not have a null value with an individual label and not show the field at all if the field is null. My ...
0
votes
0answers
116 views

How to hide attributes in one field via Arcade expression language - ArcGIS Online

I have a layer and I am configuring pop-ups, but in one specific field - Name, I have blank records which I don't want to include them in the pop -ups. Does anyone knows how to create the expression, ...
0
votes
0answers
74 views

Using Arcade “Buffer(Geometry” in Portal for ArcGIS Web Maps

I have a Portal for ArcGIS web map, with a Point Feature Service and Line Feature Service. I wish to use an Arcade expression to buffer the geometry in the display. I've figured out the basics of the ...
2
votes
1answer
41 views

Vary symbol rotation to point towards fixed point using Arcade and ArcGIS Pro?

How would I write an expression in the expression builder to rotate a marker symbol towards a fixed grid reference using Arcade and ArcGIS Pro? It does not need to be too accurate (no haversine ...
0
votes
1answer
184 views

Arcade expression for multi fields

I am new to Arcade and I am trying to symbolize a feature based on a domain value in multiple fields. The feature class is named Zones and there are 3 fields Phase1, Phase2, Phase3 with the same ...
1
vote
1answer
440 views

Labeling expressions on AGOL with Arcade for certain features

I am working on a web map in AGOL for the indoor office map. I have some issues writing custom expressions with Arcade in order to label the types of rooms (office rooms) based on another attribute ...
2
votes
1answer
303 views

ArcGIS Online Webmap: Summarize values of overlapping polygons in quantitative symbology

I am attempting to create a dynamic webmap to display varying values across a grid of polygons. Within each grid cell there are multiple overlapping polygons (grid cells) each with a unique value. I ...
0
votes
2answers
472 views

Using Arcade, AGOL, and Attribute Expressions to Create a Text field with Quotes

I am working on creating a Attribute Expression that would display HTML with quotes in the field. I tried putting double quotes for the inner quotes, but I keep getting "Parse Error: Unexpected String"...
3
votes
1answer
254 views

Using Arcade expression to obtain X and Y values from geometry of Map Service

I am trying to set up an expression for use in a pop-up in my portal web map in point feature class (image) service that was published referencing SDE Enterprise Feature Class. When building the ...
1
vote
1answer
653 views

Arcade expression to see if current date is within two dates?

I am new to building expressions in Arcade and I am having trouble writing an expression that can be used to check start and end times of different areas and evaluate if the current date is within the ...
0
votes
1answer
719 views

Arcade IIF function, return field name plus string

I am pretty new to programming so I don't really understand how I can do this. Basically I have data with field that are 0, I wanted to display "No Data" when the field is 0, and when it is not 0, ...
3
votes
0answers
2k views

Using multiple If/Else if statements in Arcade Symbology Expression?

I am tasked with creating a multiple If/Else If statement in an Arcade Symbology Expression. I have 16 date fields, 8 sets of a planned submittal date, and 8 sets of the actual submittal date. So I ...
1
vote
1answer
157 views

ArcGIS Arcade Expression: Data from a Service Query

This maybe not be possible but trying anyway. I have a Map Service with geometry features published. Two of the columns are 'Zone1' and 'Zone2' with values like 'ABC' or 'DEF'. The values of 'ABC' or '...
0
votes
2answers
477 views

Return field names using Arcade function in ArcGIS Online

I'm trying to write an expression for a pop up in ArcGIS Online that will display the name of the fields if there is a specific value under those fields for each feature. I adapted the following ...
4
votes
0answers
317 views

Using feature's one-to-many statistics as graduated color symbology in ArcGIS Online application?

I've made a task oriented ArcGIS Online application that I like to improve: The application is about filling a numeric score field in a table for each row. Each row in the table is related to a ...
3
votes
1answer
2k views

Evaluating string in Arcade 'if' statement?

I'm tasked with building an Arcade expression that evaluates whether a string field includes given characters, and returns values accordingly. Attribute UTILITY_GROUP may be E, EU, G, or GU. To cut ...
2
votes
3answers
1k views

Trim symbology label decimal places when using Arcade in ArcGIS Pro?

I have an issue trying to symbolise a layer with graduated symbols using a custom expression: I am limited to using arcade/there are no other languages in the drop down which I don't believe should ...
4
votes
1answer
3k views

How to create an Arcade Expression that excludes empty field values

In ArcGIS Online, I have a point layer with attributes Provider1, Provider2, Provider3.....Provider13. The values are text consisting of people's names. I would like to configure the popup to ...
0
votes
2answers
1k views

ArCade Expression in Pop-Up- change color based on attribute

I have a layer with a "Completed" field with 4 unique values. - design phase - future year - under construction - completed in my pop-up configs I have "Status: {Completed}" How can I use Arcade to ...
2
votes
1answer
612 views

How to save the result of an Arcade expression to the database?

What course of action would you recommend if I did want to store the results of an Arcade attribute expressions to a database? For example, right now I have a layer which includes Leveraging Partner ...
0
votes
2answers
786 views

Changing colour of point based on null value using Arcade Expression in ArcGIS Online?

I have a map in ArcGIS Online with a point layer showing lighting assets. These are symbolised based on unique type (post = circle, column = square). The user will update a separate field to have a ...