AnsweredAssumed Answered

Feature Layer layer as a variable

Question asked by ionarawilson on Nov 20, 2013
Latest reply on Nov 22, 2013 by ionarawilson
Depending on what is selected on a combobox, the layer of a feature layer should change. How can I use a variable to do that?
For example, that 0 as one layer in the feature layer would be replaced by a variable, but I am not sure how to do that! Thanks

var layernumber  = 0   var stewardship = new FeatureLayer("http://tfsgis-iisd01:6080/arcgis/rest/services/Stewardship_SA3/FeatureServer/0",      {           mode: FeatureLayer.MODE_SELECTION, id: 'stewardship',           outFields: ['*']         });