Solved

delphi

Posted on 2011-03-22
6
250 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 101

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

695 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