AnsweredAssumed Answered

LabelClass with where clause

Question asked by anas.kanaanesri-se-esridist Employee on Feb 23, 2016
Latest reply on Mar 9, 2016 by David_Chambers-esristaff


i am wondering if somebody has done some sort of test regarding labelclass with where clause

i have already used the sandbox mentioned in the documentation with the following where clause code as mentioned in the documentation as well

labelClass.where = "areaname='Redlands'"

ArcGIS API for JavaScript Sandbox

i changed areaname to STATE_NAME and replaced Redlands to Texas for example and the filtering does not work at all

i just get no labels att all

i have played a little with the syntax and get it working with the following code

labelClass.where = "'STATE_NAME' = Utah";


i have also another question regarding the use of LIKE statement instead of equal

is there somebody who has an idea who can we do this for example

labelClass.where = "'STATE_NAME' like '%U'";