Questions tagged [arcade]

Use for questions about Arcade expression language used across ArcGIS Platform

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

ArcGIS Arcade Expression to combine multiple layers for use in a serial chart

I am trying to go about combining multiple layers in an dashboard arcade expression for a serial dashboard. I have two layers and I want to use a field from each layer. var portal = Portal('https://...
-1
votes
1answer
30 views

Returning values if attributes are same using Arcade with ArcGIS Pro [closed]

I am using ArcGIS Pro. I am trying to return a string if the attribute of another feature is the same as the current one in Arcade: var hazardidpt = FeatureSetByName($datastore, "Hazard Point&...
0
votes
0answers
34 views

Create Dictionary Symbology in ArcGIS Online

After some struggling I have been able to create my own dynamic symbols using the Dictionary Symbology in ArcGIS Pro. It does exactly what I want, stacking different symbols based on attribute values ...
0
votes
1answer
14 views

Calculate length and width of polygons using Arcade in Expression Builder in the attribute table in ArcGIS Pro

I am using attribute rules to automatically update cells in an attribute table. I need to auto-calculate the length and width of polygons as the user creates them. Is there a way to do this using math/...
1
vote
1answer
18 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....
0
votes
0answers
63 views

ArcGIS Pro add attribute rule (Arcade expression)

I am trying to create an Arcade expression in add attribute rule which will auto populate the attribute field (DPA_GROUP) in my points layer (as I create new point features) from the underlying ...
0
votes
1answer
71 views

ArcGIS Arcade-Expression - values from several fields

I am looking for an Arcade Expression for ArcGIS Online which does the following: If the value from field A is 222,333 or 444 OR If the value from field B is 222,333 or 444 OR If the value from field ...
0
votes
0answers
86 views

Arcade expresion for attribute driven symbology for ArcGIS Online

I need an Arcade expression for attribute driven symbology. I need to assign a different symbol for each returned value of a specific field. For ex: If the return value of "TEST" field ...
1
vote
0answers
22 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 ...
3
votes
1answer
154 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 ...
0
votes
0answers
17 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
46 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
228 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
91 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
25 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
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 ...
0
votes
1answer
402 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
24 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
2answers
287 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 ...
3
votes
1answer
144 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 ...
2
votes
1answer
87 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
41 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 &...
2
votes
1answer
31 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
41 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
30 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
167 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
66 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
198 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
150 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
35 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
149 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
20 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
2answers
59 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
27 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
21 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
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 ...
2
votes
0answers
94 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
418 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
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?
0
votes
2answers
619 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
82 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 ...
1
vote
0answers
120 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
21 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 ...
3
votes
1answer
611 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
224 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
354 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
357 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 ...
2
votes
1answer
74 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
58 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
54 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 ...