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 

TADOBetterDataset + Joins

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
david
Guest





PostPosted: Mon Sep 29, 2003 7:52 am    Post subject: TADOBetterDataset + Joins Reply with quote



Hello,
I have got a TBetterADODataSet using a query multi joins and i would like to
be able to modifiy every fields like we can do we IBQuery and IBUpdateSQL.
Has someone got and exemple please.

Thanks with friendly


Back to top
david
Guest





PostPosted: Tue Sep 30, 2003 7:15 am    Post subject: Re: TADOBetterDataset + Joins Reply with quote



Yes i have tried but it doesn't work, I would like to manually execute
update statement, but I don't know where to do this.
I have tried in beforepost even't but the dataset see that the record
has been modified and an exception is raised !!! :-@
Le 30/09/2003, "Brian Bushay TeamB" a supposé :
Quote:
I have got a TBetterADODataSet using a query multi joins and i would like to
be able to modifiy every fields like we can do we IBQuery and IBUpdateSQL.
Has someone got and exemple please.

Have you tried just editing the field values? With ADO Joins are supposed to
be editable. With SQL server and Access most joins are editable. With
other ole db drivers you will need to test.


--
o--O--o
David


Back to top
Arthur Hoornweg
Guest





PostPosted: Wed Oct 01, 2003 6:39 am    Post subject: Re: TADOBetterDataset + Joins Reply with quote



Brian Bushay TeamB wrote:

Quote:
You need to use CANCEL to cancel the current record out of Edit mode
then ABORT to cancel out of the event.


Very nice technique. Is it also possible to synchronize
the current record on display with the database contents
of the record?



--
Arthur Hoornweg
(please remove the ".net" from my e-mail address)


Back to top
david
Guest





PostPosted: Wed Oct 01, 2003 7:39 am    Post subject: Re: TADOBetterDataset + Joins Reply with quote

Have you gor an exemple ?
"Brian Bushay TeamB" a exposé le 01/10/2003 :
Quote:
Yes i have tried but it doesn't work, I would like to manually execute
update statement, but I don't know where to do this.
I have tried in beforepost even't but the dataset see that the record
has been modified and an exception is raised !!! :-@

If you modify the record in the BeforePost
You need to use CANCEL to cancel the current record out of Edit mode
then ABORT to cancel out of the event.


--
o--O--o
David


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