| View previous topic :: View next topic |
| Author |
Message |
Erick Sasse Guest
|
Posted: Wed Feb 28, 2007 1:08 am Post subject: ClientDataSet doesn't get field properties from server |
|
|
Hello,
Why the ClientDataSet doesn't get field properties from the server
dataset? Like DisplayLabel, DisplayFormat, Visible, etc?
Looks like a bug to me. Is it in QC?
--
Erick Sasse |
|
| Back to top |
|
 |
Craig Stuntz [TeamB] Guest
|
Posted: Wed Feb 28, 2007 1:48 am Post subject: Re: ClientDataSet doesn't get field properties from server |
|
|
Erick Sasse wrote:
| Quote: | Why the ClientDataSet doesn't get field properties from the server
dataset?
|
You have to set TDataSetProvider.Options.poIncFieldProps.
Even then it doesn't get all of them. That is in QC with a workaround.
--
Craig Stuntz [TeamB] · Vertex Systems Corp. · Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
Useful articles about InterBase development:
http://blogs.teamb.com/craigstuntz/category/21.aspx |
|
| Back to top |
|
 |
Erick Sasse Guest
|
Posted: Wed Feb 28, 2007 10:08 pm Post subject: Re: ClientDataSet doesn't get field properties from server |
|
|
Craig Stuntz [TeamB] wrote:
| Quote: | You have to set TDataSetProvider.Options.poIncFieldProps.
|
But then it sends the field props every time the CDS is opened?
--
Erick Sasse |
|
| Back to top |
|
 |
Craig Stuntz [TeamB] Guest
|
Posted: Wed Feb 28, 2007 10:12 pm Post subject: Re: ClientDataSet doesn't get field properties from server |
|
|
Erick Sasse wrote:
| Quote: | Craig Stuntz [TeamB] wrote:
You have to set TDataSetProvider.Options.poIncFieldProps.
But then it sends the field props every time the CDS is opened?
|
Yes, you can pick one: Send or not send. But whatever you pick, it
will do it consistently.
--
Craig Stuntz [TeamB] · Vertex Systems Corp. · Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
IB 6 versions prior to 6.0.1.6 are pre-release and may corrupt
your DBs! Open Edition users, get 6.0.1.6 from http://mers.com |
|
| Back to top |
|
 |
Erick Sasse Guest
|
Posted: Wed Feb 28, 2007 11:05 pm Post subject: Re: ClientDataSet doesn't get field properties from server |
|
|
Craig Stuntz [TeamB] wrote:
| Quote: | But then it sends the field props every time the CDS is opened?
Yes, you can pick one: Send or not send. But whatever you pick, it
will do it consistently.
|
Won't it impact performance?
--
Erick Sasse |
|
| Back to top |
|
 |
Craig Stuntz [TeamB] Guest
|
Posted: Wed Feb 28, 2007 11:14 pm Post subject: Re: ClientDataSet doesn't get field properties from server |
|
|
Erick Sasse wrote:
| Quote: | Won't it impact performance?
|
Not much. Doing the network hop in the first place costs you more than
the bytes, and you can't really get away from that if you want data.
Only optimize stuff which is slow.
--
Craig Stuntz [TeamB] · Vertex Systems Corp. · Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
How to ask questions the smart way:
http://www.catb.org/~esr/faqs/smart-questions.html |
|
| Back to top |
|
 |
|