Select to view content in your preferred language

LabelClass where clause not working

2043
11
02-01-2021 02:34 PM
JimBambrough
Emerging Contributor

This works:

 

where: "status = PENDING"

 

I am trying to apply a condition to my LabelClass as follows... the where clause does not seem to be working

 

      labelClass = {
        symbol: {
          type: 'text',  // autocasts as new TextSymbol()
          color: 'black',
          font: {  // autocast as new Font()
            family: 'Material Icons',
          }
        },
        labelPlacement: 'center-center',
        labelExpressionInfo: {
          expression: '"\u2714"'
        },
        where: "status in ('PENDING', 'DRY_RUN')"
      }; 

 

 

 

Tags (1)
0 Kudos
11 Replies
JimBambrough
Emerging Contributor

Yes, I did try this with no luck

0 Kudos
KenBuja
MVP Esteemed Contributor

If using "$feature.MARKER_ACTIVITY" works with your clause but '"\u2714"' doesn't, you should open a bug report.

0 Kudos