Questions tagged [arcade]

Use for questions about Arcade expression language used across ArcGIS Platform

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

Scale dependent Pop-up, Is Arcade the answer?

Is there a way (possibly through an Arcade Expression) to control ArcGIS Online Pop-up visibility based on scale? For example, I only want the Pop-up to be available when the user is zoomed in to a ...
0
votes
0answers
34 views

ArcGIS Online - send custom email

I have created a web application using ArcGIS Online. I have included a widget to share the location of the map via email. The email uses the default settings of the widget including the link with the ...
1
vote
1answer
38 views

ArcGIS dashboard Arcade Using multiple If/else if statements

I try to write an Arcade expression in dashboard indicator, the expression has 4 if statements but only the first two statements are works the code is below: ###########################################...
1
vote
1answer
21 views

Showing label if greater than percentage using Arcade with ArcGIS Pro

I have a text field called PerVax1 that has percentages. I want to create an expression that labels the features when the field has a percentage greater than 30%. Here's some things I've tried so far:...
1
vote
1answer
18 views

Having trouble concatenating with Arcade across fields and having No Data when all columns are empty

I have data that needs to be in a pop-up that is contained across several fields. If the fields have no data, I would like the pop-up to say "No Aviation Resources". Here is what I have so ...
1
vote
0answers
14 views

Listing total number of features into an ArcGIS Online feature pop-up when the service consists of grouped features

I'm trying to use the count function to list the total number of features in a feature pop-up. I can do this through configure pop-up/add expression Count($layer) if the feature service consists of ...
0
votes
1answer
31 views

ArcGIS Pro arcade if else statements

I am tasked with sorting Zoning codes numbering over 100 to just 5 (Residential, Office, Commercial, Industrial and Misc). For whatever reason I cannot get Arcade to recognize a text attribute other ...
0
votes
0answers
18 views

Listing total number of features into an ArcGIS Online feature pop-up

When configuring a feature service pop-up, how can I get the total number of features listed in the pop-up? For example, I have a hydrant service. When clicking on any hydrant, the pop-up would list ...
1
vote
1answer
24 views

Arcade expression to display alias field name and value in popup

I'm trying to return certain fields in my popup in AGOL depending on the value in the visit type field. I'm struggling to figure out how to return the alias field name and value. Right now my ...
2
votes
1answer
23 views

Arcade Expression for Label Halo Color

I am trying to label Census Block Groups and Tract ID for the block group feature layer. I would like to label them using different color halos. Is there an arcade expression that will allow me to ...
1
vote
0answers
15 views

TextFormating.NewLine not honored in Field Maps

I have an arcade expression that removes null fields from my pop up in AGOL Map Viewer Beta. I need the same pop up settings to also be honored in Field Maps. When using the TextFormatting.NewLine or &...
0
votes
0answers
24 views

Color points by value and size them by another one using Arcade in ArcGIS Pro

I am totally new to the Arcade language and just want to get the position a value has in the list of all values from that column. More precise: I have a Point Layer in ArcGIS Pro with the columns &...
1
vote
1answer
24 views

Decoding Shape using Arcade in ArcGIS Pro

I have Shape column in ArcGIS Pro. How do I get x,y from it with Arcade?
0
votes
0answers
19 views

Using Arcade conditional IIF Statement in ArcGIS Field Maps

I am building a form in ArcGIS Field Maps and if one field is answered NO, I want the next 8 fields to not even show up. I think I need them in a group and to use an IIF statement: IIf($feature["...
1
vote
0answers
22 views

Attribute rules for location description

Our organization is working on migrating to ArcGIS Pro and the new Utility Network. I am working on replicating Attribute Assistant functions with the new Attribute Rules in a test environment. We ...
0
votes
1answer
39 views

Symbology with Arcade Expression using ArcGIS Pro

I am using ArcGIS Pro 2.6. I have a line feature class, in the attributes of which there is a field "Type", and "Thickness", I need to make a complex Symbology that unites these 2 ...
0
votes
1answer
40 views

Spatial Interactions - ArcGIS Online - Query based on mouse-click

I have a web map, authored and deployed as a web app. It contains a series of points and lines. I was wondering if it was possible to create an ability to click anywhere on the map, and have the ...
0
votes
1answer
62 views

ArcGIS Pro - Rename attachments in attachment table based on relationship field

I'm looking for a Python 3/Aracade script to field calculate ATT_NAME in an attachment table based off of the REL_GLOBALID. So where REL_GLOBALID is {67CECF26-9BE8-4E37-9408-3BC156DA51C0}, I'd like to ...
0
votes
0answers
39 views

Issue with Calculate Field and text array

I've tried this expression in the Arcade playground and it works as I expect. Number(Split($feature.PVI,"+")[1]) $feature.PVI is a text field that contains something that looks like "R+...
0
votes
0answers
23 views

Creating an Arcade expression within a feature service

I am trying to query a set of points in relation to a polygon feature service. For example, I have dataset "A" within an RDMS that I want to query and get a count of features within Dataset &...
0
votes
0answers
82 views

Why is my Arcade Intersects Expression not returning consistently correct results?

I've written an Arcade Pop-Up expression that uses the Intersects function to return "Intersecting" or "Not Intersecting" based on whether a point feature intersects a polygon ...
0
votes
0answers
17 views

Accessing feature service properties for pop ups in AGOL

Within an AGOL web map/app, is there a way to access feature service properties as a variable to show in the feature popup? I would like to be able to show when the feature service was last updated in ...
0
votes
1answer
33 views

How to prevent ArcGIS Pro Arcade expression adding one month on to my desired date?

I am trying to add dates to two date fields in ArcGIS Pro using expressions in Arcade. When I use the expression Date(2020,10,29) the result in the field is 29/11/2020, which is one month later than ...
0
votes
0answers
17 views

Configure pop-ups in ArcGIS Pro extension

A little while ago I configured pop-ups in ArcGIS Pro and used the expression option similar to what is described in Conditional Field display with Arcade in Pop Ups (revisited) and just came back to ...
0
votes
0answers
19 views

Returning top three highest numeric values using Arcade

I was introduced to Arcade a year or so ago and haven't implemented it into any of my projects as I hadn't had a need to, but I think I might have a use for it, if it can work. I have a feature class ...
1
vote
1answer
262 views

Assigning symbol and colour to attributes using Arcade expression and ArcGIS Online

I would like to use an Arcade expression in ArcGIS Online web maps to assign a symbol and a colour to different attributes. For example, if the attribute value is 'yes': the symbol is round and has a ...
2
votes
0answers
76 views

Using GeoJSON Services in Arcade Expression

I am trying to use an Arcade expression with GeoJSON services in a map using the ArcGIS Javascript API. The intent of the Arcade expression is to return a count of lakes that intersect a county that ...
1
vote
1answer
155 views

ArcGIS Arcade Expressions

I'm trying to configure a popup for a polygon feature class so that when clicked attributes from a point feature class show up. For example, if I had 10 clients living in the USA, if I clicked on the ...
1
vote
0answers
20 views

Exporting ArcGIS Online Custom Popup Window Content?

Is there a way to export the content of the customized pop-ups (that uses Arcade) in a feature class to a .csv/tabular form?
0
votes
1answer
200 views

Multiple values for condition in IIF statement in Arcade

I am trying to create an immediate calculation attribute rule for a feature class in ArcGIS Pro (that I hope carries over when published as a feature service on AGOL). I understand the basic syntax: ...
0
votes
1answer
42 views

Having two different fields symbolized to give four options in ArcGIS Online, Collector

I have a integer field for "agency", and a string field for Survey Status "SURV_STATU" Each field has two options. I used this Arcade line to see the desired symbology in ArcGIS ...
0
votes
0answers
29 views

Attribute Rules: Update Attributes

I have old features that I am adding via copy and paste to a current production feature class that has attribute rules enabled. I am having trouble figuring out a way to update "at will" ...
0
votes
0answers
95 views

Showing Count of Features by Attribute in Arcade Popup

I have a survey that I'm running through Survey123. I want to display the results in a web map that clusters points. In the popup for each cluster, I would like it to display how many features from ...
1
vote
0answers
60 views

Arcade Attribute Rules on joined feature layers (ArcGIS Pro)

I have a series of attribute rules defined. The various fields are referenced using $feature.<fieldname>. I know my rules are valid and well defined because they work fine as long as the ...
-1
votes
1answer
19 views

Syncronize a graphics item with a symbol in ArcGIS Pro

I would like to create a graphics item, such as a rectangle, and have its fill color always synchronized to the fill color of a particular symbol class in the map, in the same way a legend patch is ...
2
votes
1answer
310 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
23 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
216 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
136 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
166 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
91 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
60 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
46 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
44 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
92 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
1k 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
91 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
159 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
140 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
139 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?