Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IBX Master/Detail + DataModule

36 views
Skip to first unread message

Stephan Schmahl

unread,
Dec 9, 1999, 3:00:00 AM12/9/99
to
Hi all,

it seems I have another problem with IBX. In my application I use a form
and a datamodule. On the form I placed two DataSources for the master
and detail tables. In the datamodule I placed two IBTables respectively.

I set the MasterSource property properly and started the program. The
master/detail realation was not executed! And more it is not executed in
any combination of component placement on form and datamodule except for
placing all four components on the form! With all DataSources and
IBTables on the form it works!

Does anybody know if this is a requirement? Or a bug? Or did I forgot to
do important things? How will I use the new datamodule features if I
can't place my master/detail components in the datamodule?

Hope anybody can help me.

Stephan


Eric ten Westenend

unread,
Dec 10, 1999, 3:00:00 AM12/10/99
to
Hello Stephan,

I'm using IBX master/detail all the time in datamodules and I've not seen
your problem.
Perhaps you can send me a litte EMPLOYEE.GDB example hich is not working.

Eric ten Westenend
The Netherlands

Stephan Schmahl heeft geschreven in bericht
<38502038...@project-it.de>...

Stephan Schmahl

unread,
Dec 11, 1999, 3:00:00 AM12/11/99
to
Hi Eric,

possibly I hallucinated about this problem?! Maybe after copying the
DataSource from form to datamodule and vice versa the MasterSource property
of the corresponding table was cleared and I forgot to reinit it.

Nonetheless it does definitly not work with the DataSource on the form and
the IBTable on the DataModule!

Some time ago I heard about arranging DataSources and Tables properly.
DataSources on the form, Tables and Queries on the DataModule. Since Delphi 5
this might have changed? To use the new DataModule features all components
should be on the DataModule?

Thanks for your response.

Stephan

Eric ten Westenend schrieb:

--
Mit freundlichen Gruessen

Stephan Schmahl
Software Engineer

project-it
Gesellschaft für Consulting, Projekt- und Informationsmanagement mbH

Stadtamhof 15
93059 Regensburg

Telefon 0941 - 830 36 - 20
Telefax 0941 - 830 36 - 13
Mobil 0171 - 21 830 - 20
stephan...@project-it.de
www.project-it.de

Kevin Burge

unread,
Dec 15, 1999, 3:00:00 AM12/15/99
to
Instead of having the detail IBTable reference the Datasource on the Form,
why don't you add an ADDITIONAL datasource to the DataModule. Given,
tblMaster, and tblDetail, add a dtsMasterLink, and assign that to
tblDetail's MasterSource property. You can have as many datasources
connected to a dataset as you want.

Also of note: if you are dynamically creating the datamod, or the form, you
have to remember to set the datasource's.dataset properties (the ones on the
form) to the datamodule's datasets. (I think Delphi 5 does this for you,
somehow, now, but it's caused me problems such that I can't depend on it).

Hope this helps.

Kevin Burge
Systemware, Inc.

0 new messages