Solved

delphi

Posted on 2011-03-22
6
239 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
6 Comments
 
LVL 32

Assisted Solution

by:ewangoya
ewangoya 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now