I am aware that two arraycollections pointing to the same source contain references to the same set of objects. Let me clarify that I am speaking of an arraycollection that is managed by a custom assembler in LCDS 2.51. New items are being added to this arraycollection by a server-side process. The users want only to see the most recent 200 records.
Now the source property of a managed arraycollection is null. The arraycollection.list.localItems property might possibly be used as you suggest, but I think any slice of this array would be static. As new items are added to the managed arraycollection, I would have to manually copy them to the collection actually bound to the grid and then manually remove the oldest items. --- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Two ArrayCollections pointing at the same source should be working with > references to the items, so you shouldn't need to "transfer data". I > believe that if you slice the source array and wrap it with an > ArrayCollection, then changes to the item objects via the AC API will > actually apply to the base array. Test that to be sure. > > > > If that does not work, and users can update the data through the > restricted AC, then you might have to explicitly update the real source. > > > > Tracy > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of richcianci > Sent: Wednesday, June 25, 2008 10:31 AM > To: [email protected] > Subject: [flexcoders] Re: Restrict the number of records viewable in a > managed arraycollection > > > > The managed ArrayCollection IS the DG.dataProvider. Are you saying I > need to keep 2 ArrayCollections per DG, one managed and one unmanaged > and transfer data between the two? > > --- In [email protected] <mailto:flexcoders%40yahoogroups.com> > , "Tracy Spratt" <tspratt@> wrote: > > > > In the result handler, just select the desired items, and assign them > to > > the DG.dataProvider. > > > > Tracy > > > > > > > > ________________________________ > > > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> > [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> > ] On > > Behalf Of richcianci > > Sent: Tuesday, June 17, 2008 5:08 PM > > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > > Subject: [flexcoders] Restrict the number of records viewable in a > > managed arraycollection > > > > > > > > Hello, > > > > Is there a way for me to restrict the number of rows a user can see in > > > a datagrid? I have a datagrid whose datasource is a large managed > > arraycollection that is being constantly added to/updated by a > > streaming process. The client want the user to only see the first 200 > > rows of the collection. Is there a relatively easy way to keep the > > user's view of the restricted in this way? > > >

