Open Attribute Table Widget on start?

4654
2
Jump to solution
03-26-2015 09:56 AM
MarkJones7
Occasional Contributor

Hello All,

I am a newbie to the Web App Builder world and have a question. =]

Is there a way to have the Attribute Table Widget open on the start of the Web App?

Thanks,

Mark

1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Mark,

  There is not configuration option for this, but if you are using WAB Dev version then you can make a small change to achieve this behavior.

In the client\stemapp\widgets\AttributeTable\widget.js file line 122 (in the WAB 1.1) you will find that the table is ensured it is closed by this line this._closeTable();

so just make this change  (lines 10 and 11):

        attrUtils.readLayerInfosObj(this.map).then(lang.hitch(this, function(layerInfosObj) {
          this.own(on(
            layerInfosObj,
            'layerInfosIsShowInMapChanged',
            lang.hitch(this, this.onLayerInfosIsShowInMapChanged)));
          this.own(layerInfosObj.on(
            'layerInfosChanged',
            lang.hitch(this, this.onLayerInfosChanged)));
          this._createBar();
          //this._closeTable();
          this._openTable();
        }));

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Mark,

  There is not configuration option for this, but if you are using WAB Dev version then you can make a small change to achieve this behavior.

In the client\stemapp\widgets\AttributeTable\widget.js file line 122 (in the WAB 1.1) you will find that the table is ensured it is closed by this line this._closeTable();

so just make this change  (lines 10 and 11):

        attrUtils.readLayerInfosObj(this.map).then(lang.hitch(this, function(layerInfosObj) {
          this.own(on(
            layerInfosObj,
            'layerInfosIsShowInMapChanged',
            lang.hitch(this, this.onLayerInfosIsShowInMapChanged)));
          this.own(layerInfosObj.on(
            'layerInfosChanged',
            lang.hitch(this, this.onLayerInfosChanged)));
          this._createBar();
          //this._closeTable();
          this._openTable();
        }));
MarkJones7
Occasional Contributor

Thanks Robert. I do have WAB Dev and that work perfectly. Sucks that it can't be done for the online version. =[

0 Kudos