IBCTable problem and master detail

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
suarahati
Posts: 6
Joined: Fri 26 May 2006 03:48
Contact:

IBCTable problem and master detail

Post by suarahati » Fri 26 May 2006 03:53

could u please tell me what is the correct way to setup table is using master detail. Its cause, when I add the data, its not fill in the database.

tq

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Fri 26 May 2006 10:02

This problem could be caused by several reasons:
1). You have not set the TIBCConnection.AutoCommit or TIBCTable.AutoCommit property to True, hence data is sent to server but not committed
2). You use Master-Detail parameters binding - in this case data is sent to server but MasterFiled of detail DataSet is empty(untill you manually fill it)
The solution is to:
1) Set TIBCConnection.AutoCommit and TIBCTable.AutoCommit to True
2) Use full Master-Detail binding through MasterField and DetailField TIBCTable properties.
Also pay attention to IBDAC MasterDetail demo project.

suarahati
Posts: 6
Joined: Fri 26 May 2006 03:48
Contact:

thanks

Post by suarahati » Mon 29 May 2006 01:38

Thanks...I'm still new with this database actually.

Post Reply