Hi,
I have a widget for permorming a query and draw some elements in the map. When I execute my query with the querytask I also write in a label "X record founded".
(...)
queryTask.execute(query, dojo.hitch(this, "drawRecords"));
},
drawRecords: function (featureSet) {
(...)
this.shelter.hide();
dojo.byId("myLabel").innerHTML = "X record founded";
}
And this works fine when I have >1 records in the featureset, BUT when I have zero results, drawRecords function is not triggered, so the shelter never disappeared and the message tellin 0 record founded never appears.
I have try several things, but nothing is working.. I know that querytask has the methoth "