Questions tagged [arcade]

Use for questions about Arcade expression language used across ArcGIS Platform

Filter by
Sorted by
Tagged with
2
votes
1answer
45 views

Dynamic/calculated field in ArcGIS Pro via Arcade expression?

In an ESRI video called Getting to Know Arcade, the presenter states that dynamic/calculated fields are possible via Arcade expressions. How many of you have ever been in a situation where you had a ...
0
votes
0answers
18 views

Compute geometric mean of a field (statistical computation)

I am trying to use the geometric mean instead of the arithmetic mean to aggregate a field in ArcGIS-online. Arcade does not offer a function for the geometric mean (like Average($feature["Result&...
3
votes
2answers
172 views

Get ID from closest feature in different layer

ArcGIS Collector (Android) ArcGIS Online Scenario: Users create and update features in a point FC via Collector. Upon creation/update, I want Collector to: Automatically get the ASSET_ID value from ...
0
votes
1answer
30 views

ArcGIS Pro 2.5 - Calculate sum of a field in Arcade

I am using ArcGIS Pro 2.5 and I am trying to calculate the sum of a field in Arcade. I used Sum($layer, "Population") However when verifying I get the message that "Object Not Found $...
1
vote
0answers
15 views

Adding intersecting information from point layer to polygon layer pop-up window in ArcGIS Online using Arcade

I have two layers. One point layer and one polygon layer. The point layer has several points that fall within each polygon. The points represent different types of sports, and the polygons represent ...
0
votes
0answers
26 views

Using Arcade to symbolize based on edit date AND additional field

I currently have a script written to symbolize my features based on the date they are edited (below). I want to add a line before this block that evaluates another text field, Mnt_Cdn. If Mnt_Cdn ...
2
votes
1answer
29 views

Arcade-get 4 nearest addresses from point feature

I used the below code to get the nearest one location from $feature, but I'm looking now to get nearest 4 records from $feature. I tried with json object, arrayList, but having syntax errors. Not ...
0
votes
0answers
33 views

Summarizing table columns in a dynamic text expression

I have some data in a table that I would like to perform some statistics and have that placed in a text box on my map Layout. While I could do this by hand, I'd like to do it dynamically so when I ...
0
votes
1answer
31 views

Calculating custom HTML tables by feature for AGOL popups

I am working on a project that has all of the stops in a bus system. Each stop can serve more than one route and I have broken down ridership by route in each of the columns with a total route ...
0
votes
1answer
25 views

Return non-empty field names and attributes using Arcade function in ArcGIS Online

I'm trying to write an expression for a pop up in ArcGIS Online that will display the non-empty field names and attributes. I adapted the following script that I found online here var returnstring = "...
0
votes
1answer
385 views

Calculating feature count of attribute type using arcade in ArcGIS Online

I have a simple table saved as a feature in ArcGIS Online. The table structure is very simple: ID,Date,Type,Location,Total,Sum_typ,cumul In the last three fields I would like to calculate statistics ...
1
vote
0answers
54 views

Accessing other layers using Arcade in ArcGIS Portal

I want to create a pop-up that uses multiple layers like in this blog post on Using FeatureSetBy functions in Arcade to drill-down to other layers and tables. However, the web map I am working with ...
2
votes
2answers
81 views

Arcade expression to find minimum value that is not zero

I am trying to create an Arcade expression to calculate a field in ArcGIS Pro. In my streets feature there are 4 number fields to evaluate. I can easily use the Min() function to do this. The problem ...
2
votes
0answers
81 views

Using Arcade for ArcGIS Pro Dictionary style

I successfully created a new dictionary style that adds a symbol if a value exists (boolean); trying to add more symbols if values in other fields exist, but no luck. I am new to Arcade, so probably ...
0
votes
0answers
83 views

Getting week number from date using Arcade with ArcGIS Online

How can I get the week number (week position in year) from a date with ArcGIS Online’s Arcade?
1
vote
0answers
49 views

ArcGIS Pro Arcade expression to Maintain line-to-point connectivity

A customer was using a geometric network to maintain connectivity between lines and points. Now they are using ArcGIS Pro, which does not support geometric networks. They cannot use the Utility ...
1
vote
1answer
160 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
28 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
31 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
61 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
102 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
112 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
35 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
1answer
83 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
71 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
98 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
89 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
350 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
99 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
409 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
100 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
53 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
296 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
780 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
227 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 ...
1
vote
1answer
176 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
1answer
479 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
1answer
213 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, ...
2
votes
1answer
57 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
279 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
700 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
452 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
686 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
516 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
951 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 ...
1
vote
1answer
1k 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, ...
4
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
196 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
695 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 ...
3
votes
0answers
379 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 ...