Questions tagged [arcade]

Use for questions about Arcade expression language used across ArcGIS Platform

Filter by
Sorted by
Tagged with
6
votes
1answer
9k 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 ...
4
votes
0answers
3k 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 ...
3
votes
1answer
191 views

Workflow for data expression in Arcade - generate elements from concatenated fields

I am familiar with Arcade for pop-ups and labeling, but new to using it for data expressions in the new AGOL dashboards. I have dataset and I would like to generate dashboard elements based on the ...
3
votes
1answer
177 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 ...
3
votes
1answer
679 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 ...
3
votes
2answers
229 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 ...
3
votes
1answer
3k 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 ...
3
votes
1answer
1k 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 ...
3
votes
1answer
310 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 ...
3
votes
1answer
179 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 ...
3
votes
0answers
485 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 ...
2
votes
1answer
37 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?
2
votes
2answers
222 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
1answer
2k 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, ...
2
votes
3answers
5k 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 ...
2
votes
1answer
954 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 ...
2
votes
1answer
84 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 ...
2
votes
1answer
190 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
872 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 ...
2
votes
2answers
3k 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 ...
2
votes
2answers
779 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 ...
2
votes
1answer
132 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 &...
2
votes
0answers
100 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 ...
2
votes
1answer
78 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 ...
2
votes
0answers
225 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 ...
1
vote
2answers
152 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
3answers
3k 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 ...
1
vote
3answers
243 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 ...
1
vote
1answer
1k 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 ...
1
vote
1answer
1k 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 ...
1
vote
1answer
1k 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 ...
1
vote
1answer
268 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
114 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
26 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
1answer
466 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
1answer
586 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 ...
1
vote
1answer
1k 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 ...
1
vote
1answer
2k 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
333 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 '...
1
vote
1answer
20 views

If/Else statement labelling features on ArcGIS Online Arcade

I have an If/Else statement that works fine in ArcGIS Pro but does not work in ArcGIS Online: if($feature.StreetLength < 3){ return "<FNT size = '8'>" + Left($feature....
1
vote
0answers
27 views

Display Related Data in Popups for Grouped Layers

I am creating a web map from a map service that contains related data. I want to display the related data in my point feature popups. I thought it would be easy to pull in the related tables in Arcade ...
1
vote
0answers
17 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 ...
1
vote
2answers
363 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 ...
1
vote
0answers
33 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 ...
1
vote
0answers
29 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?
1
vote
0answers
131 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
vote
1answer
411 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 ...
1
vote
0answers
87 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
0answers
120 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 ...
1
vote
0answers
90 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 ...