AnsweredAssumed Answered

Refresh Feature table based on visible layer?

Question asked by NMWRRI on May 23, 2016
Latest reply on Oct 21, 2016 by CGSJohnson

Hi ,


I have six layers, they all have the same Field names, and I want to connect them based on the feature layer that is currently visible. Do I need to add a destroy() or refresh() every time I change a layer?




var layer = function changetable() {

     if (CNTYmm.visible)

               {var layer = CNTYmm}

     else if (HUC8mm.visible)

               {var layer = HUC8mm}}


myFeatureTable = new FeatureTable({

  "featureLayer" : layer,

  "outFields":  ["NAME", "Units"],

  "map" : map,

  "gridOptions" : {

  allowSelectAll: true,

  allowTextSelection: true,


   }, 'PrecipTable');