Zum Hauptinhalt gehen

Get a Value from a Coded Value Domain

Kommentare

4 Kommentare

  • Berend Veldkamp

    I think this should work:

    =$getCodedValueDomain1.domain.getName($code.result)

     

    (documentation)

    1
  • Jessica Gould

    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
  • Berend Veldkamp

    I don't know, this is what works for me. I run this in the sandbox (i.e. with the default Capital City webmap):

    1. Get Layer with ID Water Lines
    2. Get Coded Value Domain with Layer =$layer1.layer and field: SYSTEM
    3. Log with Message =$getCodedValueDomain1.domain.getName(0), this will print 'Pump'
    0
  • Jessica Gould

    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.