I am looking for a solution to the same issue. As far as I understand it the problem is that the new dataProvider elements are assigned different UIDs from the UIDs stored in your openItems array. The UIDs assigned to the old dataProvier are different than the UIDs assigned to the new dataProvider.
I read a solution somewhere that you can create a new ArrayCollection class that implements the IUID interface and use that for your dataProvider but that doesn't solve my problem as I am using XML for my dataProvider. I'll keep you posted if I find a solution. --- In [email protected], "flashalisious" <[EMAIL PROTECTED]> wrote: > > Ok I have working with the Tree to display a list of files for to users. > There are two branches. Each labeled with the user name. Any files they > have uploaded are listed under there branch. > > I will have an upload file button as part of the view. When the users > uploads a file I fire off an AMFPHP call to get the new file list data > so that I can update the tree with the new files name. > > Here is the issue that I am running into. I am storing the Tree's > openItems property into an Array because after the user uploads the file > and the dataProvider gets updated the branches close. I would like the > user to be presented with the branches they had open before they > uploaded the file. > > Ever time a branch is open I say myArray = mytree.openItems; > > If I put a button all the stage and on the click I say mytree.openItems > = myArray; The tree opens the branches stored in the Array. If I make an > AMF Call and the dataProvider changes the same function for setting the > openItems proporty does not work. > > I even tried using mytree.validateNow() before I set the openItems > propory. > > Anyone have thoughts on how to make this work. Seams like a bug to me > but I am not sure. > > -Matthew >

