Solved

delphi

Posted on 2011-03-22
6
249 Views
Last Modified: 2012-05-11
Experts,

Need a soln.

I have two tables in oracle lets say A and B, there is no master-child relationship but both tables have common column,
eg structure of
A is
eid       name   did
structure of B is
did      dname
Now in delphi i have a form, two girds, now i have to show data from A in one grid and data from B in other grid, is it possible to set master - detail relation at design time when the tables are not related, if not possible at design time how to do at code? Also i need to insert, delete record,
Can anyone help with complete code?
0
Comment
Question by:AbhiJeet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 32

Assisted Solution

by:Ephraim Wangoya
Ephraim Wangoya earned 250 total points
ID: 35191909

Yes it is.
Use the properties editor in this manner

On the child tables, set the MasterSource to the Parents Datasource
Set the MasterFields for the child table to did
Make sure you set the indexname or indexfieldname in the MasterTable

That should do it
0
 
LVL 19

Expert Comment

by:Thommy
ID: 35192356
Here is an example for Master -Detail...

Master Detail Delphi Example
http://www.componentace.com/master-detail-delphi.htm
0
 
LVL 19

Accepted Solution

by:
Thommy earned 250 total points
ID: 35192474
My last post isn't really good, because it misses the DFM sources!!!

To get a master-detail example with full sources please download this...

ID: 27744, ClientDataSet Master Detail With 3 Tables - Delphi 2010
http://cc.embarcadero.com/item/27744

Registering is free, if you do not already have an embarcadero developer network account...
0
 

Author Comment

by:AbhiJeet
ID: 35435854
close
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 35452387
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question