Additionally, if you're doing this in .NET you could let your class library handle the paging and simply just move the current recordset to Flex as a List Of objects collection. All you would need to do then is to tell your remote object where you are at in the list and if you are resorting any of the columns. You should be able to do any resorting and grabbing of sets of records completely on the .NET side.

Jurgen

Matt Chotin wrote:

The key to this is write an implementation of IList that throws ItemPendingErrors and then does the loading for you. You then pass that IList to aListCollectionView and away you go. Keep in mind that if you attempt to sort or filter the ListCollectionView will try to load all of your data, so you'll need to do your own work to have that passed through (which may mean subclassing LCV or writing your own impl of ICollectionView if this is important to you). Matt

------------------------------------------------------------------------
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Shaun
*Sent:* Wednesday, May 23, 2007 2:58 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: {Disarmed} [flexcoders] Data Paging a la Matt Chotin for Flex 2.1

Aww, what about us non-FDS guys, Matt? :-( Protecting the FDS
revenue stream I take it? Actually, I would love to use FDS, but
unfortunately this app requires a .NET backend and doesn't have the
budget for FDS or WebOrb anyway.

Oh well, time to start coding... :-)
Shaun

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> FDS will do some of this work for you automatically, one reason why
we
> didn't write an updated version of the blog post :-)
>
> ________________________________
>
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>] On
> Behalf Of Shaun
> Sent: Wednesday, May 23, 2007 2:32 PM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> Subject: Re: {Disarmed} [flexcoders] Data Paging a la Matt Chotin
for
> Flex 2.1
>
>
>
> Jurgen,
>
> Thanks for the tip. I checked them out, but unfortunately, those
> implementations don't address my main issue: getting the data from
the
> server in a paged fashion. They simply allow you to view an
> arraycollection in chunks, where Matt's goes back to the server as
> needed to get chunks of the data.
>
> With 150k records, I need the on demand paging.
>
> Shaun
>
>
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>, Jurgen Beck <jurgen@> wrote:
> >
> > Hey Shaun,
> >
> > You may want to check out the FlexBox components list. There are
two
> > components, one for a paged DataGrid, the other one for a paged
> > ArrayCollection.
> >
> > http://flexbox.mrinalwadhwa.com/ <http://flexbox.mrinalwadhwa.com/>
> >
> > Jurgen
> >
> > Shaun wrote:
> > >
> > > I am getting ready to implement a report for a project that
requires
> > > the user to be able to sift through a maximum of 150,000 records
> from a
> > > table (yes, we all know that in reality this is ridiculous, but
we
> also
> > > know that customers get what customers want).
> > >
> > > I read through Matt Chotin's posts on large datasets and will
likely
> go
> > > down that path, but I'm in a time cruch and so the hope of
saving
> some
> > > time, I am curious as to whether anyone has already ported ! his
> samples
> > > to 2.1 as they are from way back in 04.
> > >
> > > Or, if anyone has a better option, I'm all ears.
> > >
> > > Thanks,
> > > Shaun
> > >
> > > Matt's post:
> > >
>
http://weblogs.macromedia.com/mchotin/archives/2004/05/large_data_sets <http://weblogs.macromedia.com/mchotin/archives/2004/05/large_data_sets>
_2
>
> > >
>
<http://weblogs.macromedia.com/mchotin/archives/2004/05/large_data_set <http://weblogs.macromedia.com/mchotin/archives/2004/05/large_data_set>
s_
> 2>
> > > .cfm
> > >
> > >
> >
>

Reply via email to