 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
viana Guest
|
Posted: Mon May 09, 2005 8:42 pm Post subject: visible = false |
|
|
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
|
Posted: Mon May 09, 2005 9:02 pm Post subject: Re: visible = false |
|
|
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
|
Posted: Tue May 10, 2005 4:40 pm Post subject: Re: visible = false |
|
|
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
|
Posted: Tue May 10, 2005 6:56 pm Post subject: Re: visible = false |
|
|
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
|
Posted: Tue May 10, 2005 8:27 pm Post subject: Re: visible = false |
|
|
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
|
Posted: Tue May 10, 2005 11:26 pm Post subject: Re: visible = false |
|
|
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
|
Posted: Wed May 11, 2005 3:12 am Post subject: Re: visible = false |
|
|
That's fair enough for me, thanks Bill.
|
|
| Back to top |
|
 |
Kostas Terzides Guest
|
Posted: Wed May 11, 2005 10:41 am Post subject: Re: visible = false |
|
|
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 |
|
 |
|
|
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
|
|