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.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.