🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.aspdotnet.components.using
Article #25

Re: D2005 Datagrid paging

#25
From: James D. Franchello
Date: Tue, 09 Jan 2007 20:37
73 lines
3951 bytes
Hello Marco,

Thanks for your kind response - I do understand it a little better now (you
were absolutely right about my understanding of Web apps ... sadly ...
sigh...).

I guess the thing I just could not wrap my mind around was the fact that if
a request involved, oh, let's say hundreds of records, and they were paged
10 at a time then each time I wanted to get the next 10 (or prior for that
matter) I would have to go get those hundreds of records again. Once you
pointed out the utterly obvious about the dataset it makes a lot more sense!

This application is currently using an Access database but may at some point
be converted to SQL server. It will only be used in a single manufacturing
facility on the server on the LAN.

Actually, I am using the Enterprise version.

I did manage to get things working with OLEDB. Now I am trying to deal with
how to deploy it (what files need to go where and what access rights have to
be assigned).

Thanks again,
James


"Marco Caspers" <HexorHaxor@vaxor.com> wrote in message
news:45a33994@newsgroups.borland.com...
> James D. Franchello wrote:
>
> > Hello Bob,
> >
> > I managed to get it to work but what I had to do was the following:
> >
> >       DataSet1.Dispose;
> >       DataSet1 := Dataset.Create;
> >       lItemCount := daRequests.Fill(Dataset1);
> >
> > which seems really inefficient since it implies that on each Pageindex
>
> Then you don't understand how WEB applications work.
>
> This analogy works, albeit, extremely oversimplified:
>
> - Take into mind a Win32 application.
> - When you request a Web Page, the application is started.
> - When the web page is rendered the application is terminated.
>
> Thus anything created is also destroyed immediately.
>
> > change I go and get all the data again. I guess I just don't
> > understand these objects because it seemed to me that once I had used
> > the Fill() the data should be available in the dataset so that any
>
> Not in the dataset itself, because the object is destroyed because the
> application is terminated.
>
> You would need to store it into the viewstate of the webpage, and in
> the repost would need to retreive it from there.
>
> But you don't want that. Pages like these get gargantuan in size real
> quick and you don't want to have your visitors waiting 2 minutes on
> every repost before they see the new page.
>
> > I am not using the BDP objects but rather the OLEDB objects. Is there
> > any particular reason to use one over the other?
>
> What database do you have? Does BDP support your database? If not, use
> OLEDB.
> BDP == Larger overhead, but better designtime support IF you've got a
> higher than PRO SKU. PRO and below (turbo's) and BDP's useless anyways
> as you can't bind it to anything because they didn't bother to put in
> the components required to do so.
Technical Details
Message-ID: <45a3fc2e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <459d2f1e$1@newsgroups.borland.com> <45A0CBC6.4090602@chello.nl> <45a2a1ad@newsgroups.borland.com> <45a33994@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 21665a,5bca6ea60c26735f
X-Google-Attributes: gid21665a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "James D. Franchello" <james@nospam_INTInfo.com>
Newsgroups: borland.public.delphi.aspdotnet.components.using
References: <459d2f1e$1@newsgroups.borland.com> <45A0CBC6.4090602@chello.nl> <45a2a1ad@newsgroups.borland.com> <45a33994@newsgroups.borland.com>
Subject: Re: D2005 Datagrid paging
Date: Tue, 9 Jan 2007 15:37:27 -0500
Lines: 75
Organization: INT Information Systems, Inc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 76.181.83.231
Message-ID: <45a3fc2e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1168374830 76.181.83.231 (9 Jan 2007 12:33:50 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail