Select to view content in your preferred language

Domain Description From Another Layer

541
3
09-14-2023 07:47 AM
Labels (1)
JoshBillings
Frequent Contributor

I am trying to return the domain description from another layer using an Arcade expression. I've tried the below, but it returns blank. Any tips? 

 

var basinPoly = FeatureSetByName($map,'Modeling_Basins')

var d = DomainName(basinPoly, 'BasinID')

return d

 

Thanks!

 

Tags (2)
3 Replies
KenBuja
MVP Esteemed Contributor

Unlike the DomainName function for a Feature, you'll have to provide the code to get back anything for FeatureSets

0 Kudos
HMarcks
Occasional Contributor

I am trying to solve the same problem.  Did you figure anything out?

https://community.esri.com/t5/arcgis-field-maps-questions/smart-forms-field-calculator-domain-from-n... 

 

I can get it to return the domain code and am thinking I might have to set up a series of if statements to change the code to the description.  It wouldn't be pretty but I am not getting any more ideas on it.

AiminFan1
Emerging Contributor

Any update on this issue other than hardcode the domain name?

0 Kudos