I have successfully achieved the widget communication following widget communication.pdf Prepared By: Robert J. Scheitlin. I have noticed one thing and it is that when sharedDataUpdated2 is fired the hash table does not contain any data, why it is so?. however when the sharedDataUpdated is fired than array collection data array contains the data. i have applied this lines of code in init function of basewidget:
AppEvent.addListener(AppEvent.DATA_PUBLISH, sharedDataUpdated);
AppEvent.addListener(AppEvent.DATA_SENT, sharedDataUpdated2);
fetchSharedData();
and in the sharedDataupdated2 i have following code:
var dataTable:Hashtable = event.data as Hashtable
however event.data does not contain any data and all of its key are empty as i checked in the debugger. therfore when i checked dataTable.find("KernelDensityData") IT RETURNS FALSE. there only sharedDataupDated returns the data but sharedDataupdated2 does not.
Any thought please.
regards
nadeem
AppEvent.addListener(AppEvent.DATA_PUBLISH, sharedDataUpdated);
AppEvent.addListener(AppEvent.DATA_SENT, sharedDataUpdated2);
fetchSharedData();
and in the sharedDataupdated2 i have following code:
var dataTable:Hashtable = event.data as Hashtable
however event.data does not contain any data and all of its key are empty as i checked in the debugger. therfore when i checked dataTable.find("KernelDensityData") IT RETURNS FALSE. there only sharedDataupDated returns the data but sharedDataupdated2 does not.
Any thought please.
regards
nadeem