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
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(); }));
Thanks Robert. I do have WAB Dev and that work perfectly. Sucks that it can't be done for the online version. =[
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.