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 

Newbie: where to specify ClientDataSet key field?

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





PostPosted: Sun Jul 20, 2003 11:15 pm    Post subject: Newbie: where to specify ClientDataSet key field? Reply with quote



Using UpdateMode = upWhereKeyOnly, I get error "Unable to find record. No
Key specified" when calling ApplyUpdates.

I've tried setting ProviderFlag pjInKey = True for the pk field.

Where should I set the "key" or what else should I be doing?

Thanks.

--
Brent Rose
[email]brentrose (AT) paradise (DOT) net.nz[/email]


Back to top
Bill Todd
Guest





PostPosted: Mon Jul 21, 2003 2:56 am    Post subject: Re: Newbie: where to specify ClientDataSet key field? Reply with quote



Quote:
I've tried setting ProviderFlag pjInKey = True for the pk field.

You must set the ProviderFlags on the source dataset (the one the
DataSetProvider is connected to) not the ClientDataSet.


--
Bill (TeamB)
(TeamB cannot respond to questions received via email)

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.