Skip navigation
Currently Being Moderated

Data Management Service

Aug 21, 2013 4:33 AM

Hello, I urgently need your help.

I have to invoke a Java DAO from LiveCycle DataService. I configured a Data Management Service that works correctly. When I invoke the method, however, the ArrayCollection is not populated immediately, but is populated after running all the actionscript code. I need to use the data from the server in successive method calls. eg:



                                        public function initApp():void {

        var collectionTest:ArrayCollection = new ArrayCollection();

        var ds:DataService = new DataService("Product");

                                                       ds.autoSyncEnabled = true;

                                                       ds.autoCommit = false;


                                                       var token:AsyncToken = ds.fill(collectionTest);


        var description = this.getProductDescription(collectionTest.getItemIndex(0));


        var ds2:DataService = new DataService("UpdateProdotto");


        var collectionTest2:ArrayCollection = new ArrayCollection();       

        ds2.fill(collectionTest2, description);





How can I do that?

thank you very much.


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points