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 

help to create Master-Detail with DBx

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





PostPosted: Thu May 19, 2005 2:09 pm    Post subject: help to create Master-Detail with DBx Reply with quote



Hello, here I am, again... :-)

I want to now how I make my two tables in master detail.. I have the Master
Table, and I get only one record, using params, and my Detail table, get all
record refers to my Master Table.

How I do this um DBX and Multi-tier? in client and Server


thanks for all


Back to top
Iqbal Kabir
Guest





PostPosted: Thu May 26, 2005 9:41 pm    Post subject: Re: help to create Master-Detail with DBx Reply with quote



sdsMaster.CommandText := 'Select SaleID, SaleDate, CustomerName from
SalesMaster where SaleDate < '05/05/05'

sdsDetail.CommandText := 'Select SaleID, ItemNo, Qty from SalesDetail where
SaleID = :SaleID'

Connect SQLDataset master through DatasetProvider, ClientDataset and
DataSource. Do the same for Detail. Now in the cdsDetail set MasterSource
and MasterFields. You are done.

Good Luck.

"Fellipe Henrique"
Quote:
Hello, here I am, again... :-)

I want to now how I make my two tables in master detail.. I have the
Master
Table, and I get only one record, using params, and my Detail table, get
all
record refers to my Master Table.

How I do this um DBX and Multi-tier? in client and Server


thanks for all





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.