Page 1 of 1

IBCTable problem and master detail

Posted: Fri 26 May 2006 03:53
by suarahati
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

Posted: Fri 26 May 2006 10:02
by Alex
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.

thanks

Posted: Mon 29 May 2006 01:38
by suarahati
Thanks...I'm still new with this database actually.