I'm using the Enhanced Search widget to pass a value from a feature using the publishData method to another widget.
Sending Widget:
this.publishData({
data: feature.attributes["PARID"],
keepHistory: true
})
I'm using the onReceiveData function in the other widget to grab the data. If I write to the console under this function it gets the value, but when I try to consume it in a different function it doesn't retun the data. I've tried setting it to a global variable and still nothing. I have no idea what is wrong:
Receiving widget:
startup: function() {
this.inherited(arguments);
this.fetchDataByName('eSearch');