Get a Value from a Coded Value Domain
Can anyone help me with how i can get a value from Coded Value Domain when i have the code?
Thank you!
0
-
I think this should work:
=$getCodedValueDomain1.domain.getName($code.result)
1 -
Thank you very much for this, but i get the following error whether i use a Set Property or Evaluate Expression activity:
TypeError: $getCodedValueDomain1.domain.getName is not a function
0 -
I don't know, this is what works for me. I run this in the sandbox (i.e. with the default Capital City webmap):
- Get Layer with ID Water Lines
- Get Coded Value Domain with Layer =$layer1.layer and field: SYSTEM
- Log with Message =$getCodedValueDomain1.domain.getName(0), this will print 'Pump'
0 -
so interesting, i am able to reproduce that in the sandbox! I will keep trying...thank you.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare