AnsweredAssumed Answered

Problems with uniqueValues

Question asked by ybaiesri-ca-esridist Employee on Oct 3, 2018

Hi,

I'm using  uniqueValues function to get unique field value information.

 

When I use "field" parameter, eng works fine, but when I use "valuseExpression", my sqlWhere condition no longer work. The return results will give me everything. The results are different even I tried just put "$feature.FLOOR" in valueExpression. It should not be different from using "field" statement. How can I solve this issue?  Here is my code: 

uniqueValue({
   layer: <__esri.SceneLayer>this.map.findLayerById("Space"),
      //field: "FLOOR",
      valueExpression: "Concatenate([$feature.VERTICAL_ORDER,$feature.FLOOR],'-')",
      view: this.mapView,
      sqlWhere:layer.definitionExpression
})
.then(uniqueValueInfos=>{(...)}

Thanks, 

 

Whitney

Outcomes