4 Replies Latest reply on Aug 25, 2010 2:54 AM by mavignon

    Data modeling with multiple Flex modules not working

    Amit Gadkari

      Data Modelling with multiple Flex modules not working.

       

      I am having two modules in my application.

      a) Customer (Customer Module is loaded when application is started)

      b) Order

       

      Each module has data service which is generated using data modelling

      Customer module can get data from Livecycle data services as it is loaded when application is started

      So after getting information from Livecycle data service, if I execute Order module then I get following error

       

      Error: Unable to initialize destination: Test.MaintainOrderBean added after data store has been initialized

      at mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::addDataService()[C:\depot\DataServices\trunk\f rameworks\projects\data\src\mx\data\DataStore.as:1991]

       

       

      If after application startup, if I click on Order module and make call to MaintainOrderService then in this case I get data from OrderService. ( if this call is made before making call to get customer data)