AnsweredAssumed Answered

Passing Field Value to setDefinitionExpression of another feature.

Question asked by hamad2 on Jan 13, 2017
Latest reply on Jan 17, 2017 by hamad2

how to pass field value on click  events to setDefinitionExpression for another feature class.

I tried this one but its not working. I appreciate any Help.

               featureLayer.on("Click", function(events){
                 var testval=events.graphic.attributes[fld];
                   featureLayer2.setDefinitionExpression("SiteID = 'testval'");