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 

Hmmmm Odd CDS behavior...

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Hal Davison
Guest





PostPosted: Tue Aug 19, 2003 1:57 pm    Post subject: Hmmmm Odd CDS behavior... Reply with quote



Windows XP PRO
512MB Ram
D7 E

Data setup:
SQLQuery
DataSetProvider
DataSet
ClientDataSet

The CDS fields are set using the CDS Field editor because we are not using a
table from the DB within the data group because we are TRYING to limit the
amount of data being imported to the CDS form the DB.

We execute a SQLQuery that finds the specific record, but when application
attempts to populate the form with the retreived data an error is raised
that field not found:

cds<...>: Field <...> not found.

But if one looks at the field editor of the cds, the field is there.

Would it be better to populate the CDS in code rather than with the cds
field editor?

What really odd is that last night the code was working fine. Loaded it this
morning and we got the field not found error.

--
Hal Davison
Davison Consulting


Back to top
Kevin Frevert
Guest





PostPosted: Tue Aug 19, 2003 2:14 pm    Post subject: Re: Hmmmm Odd CDS behavior... Reply with quote



Hal,

Can you explain a little bit more about your data setup?
You have a SQLQuery->DataSetProvider->ClientDataset, what is the Dataset you
have listed?

The fields in the SQLQuery (preferably) do not change and you shouldn't
'execute' the SQLQuery (let the cds do that) Set the relationships as above
(SQLQuery->DataSetProvider->ClientDataset) and deal only with the
ClientDataset component (forget the SQLQuery component is even there).

Here is an excellent article on using TClientDataSets...
http://community.borland.com/article/0,1410,22571,00.html

I use the DataSnap components (TClientDataSets, TLocalConnection, etc)
extensively (in D6, MSSQL, ADO and BDE), so if you need a few examples, let
me know.

krf

"Hal Davison" <hal (AT) faams (DOT) net> wrote

Quote:
Windows XP PRO
512MB Ram
D7 E

Data setup:
SQLQuery
DataSetProvider
DataSet
ClientDataSet

The CDS fields are set using the CDS Field editor because we are not using
a
table from the DB within the data group because we are TRYING to limit the
amount of data being imported to the CDS form the DB.



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) 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.