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 

ClientDataSet doesn't get field properties from server

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





PostPosted: Wed Feb 28, 2007 1:08 am    Post subject: ClientDataSet doesn't get field properties from server Reply with quote



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





PostPosted: Wed Feb 28, 2007 1:48 am    Post subject: Re: ClientDataSet doesn't get field properties from server Reply with quote



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





PostPosted: Wed Feb 28, 2007 10:08 pm    Post subject: Re: ClientDataSet doesn't get field properties from server Reply with quote



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





PostPosted: Wed Feb 28, 2007 10:12 pm    Post subject: Re: ClientDataSet doesn't get field properties from server Reply with quote

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





PostPosted: Wed Feb 28, 2007 11:05 pm    Post subject: Re: ClientDataSet doesn't get field properties from server Reply with quote

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





PostPosted: Wed Feb 28, 2007 11:14 pm    Post subject: Re: ClientDataSet doesn't get field properties from server Reply with quote

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
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.