AnsweredAssumed Answered

Message Alert!

Question asked by Irfanafsar1 on Feb 23, 2018
Latest reply on Mar 1, 2018 by Irfanafsar1

Hi fellows,

I was trying to add message alert in one of my custom widget to get the features count for two features layers together but somehow it only does for one layer. What is the best way to fix this? I will appreciate any help!


This is the block of code 


on.once(, 'update-end', lang.hitch(this, function () {
var aa = this.layerInfosObj.getLayerInfoById('Mylayer_1 || Mylayer_2');
if ( === 0) {
this._showMessage("No features found");
else {
var a1 =;
this._showMessage(a1 + " Feature(s) found");