ViewerContainer.addEventListener(AppEvent.DATA_PUBLISH, sharedDataUpdated);
ViewerContainer.addEventListener(AppEvent.DATA_NEW_PUBLISHED, sharedDataUpdated);
ViewerContainer.dispatchEvent(new AppEvent(AppEvent.DATA_FETCH_ALL));
ViewerContainer.dispatchEvent(new AppEvent(AppEvent.DATA_SENT, dataTable));
var data:Object = { key: key, collection: arrayCollection }; ViewerContainer.dispatchEvent(new AppEvent(AppEvent.DATA_PUBLISH, data));
private function sharedDataUpdated(event:AppEvent):void { var data:Object = event.data; if (data.key == "your Key Name") { //todo } }
Lu, Maybe you should tell me your workflow and or objective, the more I think about this the more complicated it is getting.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.