aharui commented on issue #647: Rate Setup ADG fields name issue URL: https://github.com/apache/royale-asjs/issues/647#issuecomment-571376731 The debugger is showing exceptions when dbzExchangeRatePeriodWiseSetup is trying to access its sibling module dbzForeignCurrencyRatesSetup. There is code in dbzFCRatesMain that loads both as modules at the same time. It is unsafe to rely on the order that the modules are initialized. This problem needs to be resolved by rewriting the code that expects a particular load order before we do any further investigation of why the datagrid is not displaying anything as this exception appears to affect the fetching of the data provider. (and result in the constant network calls because selectedItem remain null causing an endless series of server requests. Direct sibling access is not good programming practice as it makes one thing dependent on the other. It might be better to have a transaction with the parent to get the appropriate information. So, instead of having dbzExchangeRatePeriodWiseSetup try to get the data on creationComplete, it can wait for an event or callback from the parent dbzFCRatesMain. dbzFCRatesMain can watch for a creationComplete from dbzForeignCurrencyRatesSetup, get the information it needs and dispatch the event to tell dbzExchangeRatePeriodWiseSetup that the data it needs is ready.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
