Arcade visualization expression

985
1
Jump to solution
02-15-2019 09:18 PM
TaylorDenniston2
Occasional Contributor

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 Domain assigned to each field. The Domain values are [Active, Complete, Future]

I want to create an expression when Phase1, Phase2 or Phase 3 = Active

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
TaylorDenniston2
Occasional Contributor

I found my answer below.

//This Arcade expression is used to show only the features that contains a Domain value of "Active" when there are //mulitple fields that contain the same Domain.

var StatusArray = [DomainName($feature,"phase1"), DomainName($feature,"phase2"), DomainName($feature,"phase3")]

Boolean(IndexOf (StatusArray, 'Active') >= 0)

View solution in original post

0 Kudos
1 Reply
TaylorDenniston2
Occasional Contributor

I found my answer below.

//This Arcade expression is used to show only the features that contains a Domain value of "Active" when there are //mulitple fields that contain the same Domain.

var StatusArray = [DomainName($feature,"phase1"), DomainName($feature,"phase2"), DomainName($feature,"phase3")]

Boolean(IndexOf (StatusArray, 'Active') >= 0)

0 Kudos