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.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.