BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

visible = false

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
viana
Guest





PostPosted: Mon May 09, 2005 8:42 pm    Post subject: visible = false Reply with quote




hi,

just a little question : if i set a Tfield.visible := false, will it be fetched to the client side ? ie, i have a provider linked to a query, and set all clients of the query to visible = false. in this situation, no fields will be fetched ?

thanks,
viana
Back to top
Bill Todd
Guest





PostPosted: Mon May 09, 2005 9:02 pm    Post subject: Re: visible = false Reply with quote



The Visible propertie determines which columns will be displayed in a
DBGrid. It has no affect on whether a column is fetched from the server
or not.

--
Bill Todd (TeamB)
Back to top
viana
Guest





PostPosted: Tue May 10, 2005 4:40 pm    Post subject: Re: visible = false Reply with quote




hello bill,

thanks for you reply.

is there a way to not fetch a specific column to
the client side ?

thanks,
viana

"Bill Todd" <no (AT) no (DOT) com> wrote:
Quote:
The Visible propertie determines which columns will be displayed in a
DBGrid. It has no affect on whether a column is fetched from the server
or not.

--
Bill Todd (TeamB)


Back to top
Bill Todd
Guest





PostPosted: Tue May 10, 2005 6:56 pm    Post subject: Re: visible = false Reply with quote

If you do not want the data in a column do not include that column in
the SELECT clause of your SQL statement. Does that answer your question?

--
Bill Todd (TeamB)
Back to top
Esteban Pacheco
Guest





PostPosted: Tue May 10, 2005 8:27 pm    Post subject: Re: visible = false Reply with quote

I had the question a while ago, and i coudlnt find an answer so i start
including the columns on the SQL Statement as you suggest, but, what i
needed and i think viana needs is

For example to have a Select * From Employee, but, in the client side, being
able to just select four columns out of the 15 (example) that the sql
statement returns, the reason behind this is to avoid having to specify
different queries in the app server side just to satisfy the need of more or
less columns in the client fetch.

I tought originally, that by doing a (Ctrl +A) in the fields of the
TClientDataset and selecting only the desired columns from the available
ones, it will limit, the columns being fetch to the client side, but, that
wasnt the case.

It will be a lovely feature for sure.

Is there anything like that out there?

Thanks

Esteban Pacheco
http://estebanp.blogspot.com


"Bill Todd" <no (AT) no (DOT) com> wrote

Quote:
If you do not want the data in a column do not include that column in
the SELECT clause of your SQL statement. Does that answer your question?

--
Bill Todd (TeamB)



Back to top
Bill Todd
Guest





PostPosted: Tue May 10, 2005 11:26 pm    Post subject: Re: visible = false Reply with quote

There is no way that I know of to limit the columns transferred from
the middle tier to the client. If the issue is controlling which
columns are visible in a grid you can set the Visible property of the
field objects on the client, however, that will still transfer all of
the data from the middle tier to the client. Transferring the data to
the client may require more traffic than changing the CDS.CommandText
property and running a SELECT that returns only the columns you want.

--
Bill Todd (TeamB)
Back to top
Esteban Pacheco
Guest





PostPosted: Wed May 11, 2005 3:12 am    Post subject: Re: visible = false Reply with quote

That's fair enough for me, thanks Bill.


Back to top
Kostas Terzides
Guest





PostPosted: Wed May 11, 2005 10:41 am    Post subject: Re: visible = false Reply with quote

I think that building persistent fields of provider.dataset (in
application server) (if an option) and not including the field we don't
want to be included, then it will not be fetched in client side, but may
be I am wrong.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.