WAB Filter Widget - how to show tables?

321
0
11-13-2019 01:35 AM
MinShin
New Contributor III

Hi,

This is about extending Filter Widget to make tables selectable.

I spotted this section in SingleFilterSetting.js

_recreateLayerChooserSelect: function(bindEvent){
      if(this.layerChooserSelect){
        this.layerChooserSelect.destroy();
      }
      this.layerChooserSelect = null;
      var layerChooser = new CustomFeaturelayerChooserFromMap({
        showLayerFromFeatureSet: false,
        showTable: false,
        onlyShowVisible: false,
        onlyShowWebMapLayers: true//only support original web map layers in filter#12142
        createMapResponse: this.map.webMapResponse
      });
      this.layerChooserSelect = new LayerChooserFromMapWithDropbox({
        layerChooser: layerChooser
      });
      this.layerChooserSelect.placeAt(this.layerTd);
      if(bindEvent){
        this._bindEventForLayerChooserSelect(this.layerChooserSelect);
      }
    },

Changing "showTable" to be true didn't make a difference.

FYI, my final goal is creating chart using tables.

Any advice will be appreciated.

Regards,

Min 

0 Kudos
0 Replies