MIDAS Master/Detail Failure
Posted: Sat 12 Feb 2011 02:06
I discovered this during development and created a simplified setup to make sure there was actually a Unidac bug. There does appear to be, another serious one when interfacing Unidac with TClientDataSet.
I have a query which returns services items. Each item is keyed on a service order number and a service item number. My master query returns exactly one record. The detail query returns technicians scheduled for the service item. In my example, there are 55 records in the result set.
The component setup is like this...
MasterCDS->DataSetProvider
DetailDS->DetailSrcDSDataSetField
DataSetProvider->MasterSrcDS
MasterSrcDS->MasterSrcDsr
DetailSrcDS->MasterSrcDsr
This is a nested clientdataset scenario. When the master is open, only 1 record in the detail is returned. There should be 55 records. In fact, I can see the 55 records when the detail uniquery opens. The records are just not getting into the clientdataset, except for the first one.
I created a video illustrating the problem. The upper grid is the master query. The middle grid is the detail data in a clientdataset. The lower grid is attached to the uniquery acting as a datasource for the detail data.
http://www.mediafire.com/?yw3kk9wtl93reaz
Please tell me there is a Unidac setting I am missing and not another bug in basic operation. Thank you for any help you can provide.
How soon before the next release?
I have a query which returns services items. Each item is keyed on a service order number and a service item number. My master query returns exactly one record. The detail query returns technicians scheduled for the service item. In my example, there are 55 records in the result set.
The component setup is like this...
MasterCDS->DataSetProvider
DetailDS->DetailSrcDSDataSetField
DataSetProvider->MasterSrcDS
MasterSrcDS->MasterSrcDsr
DetailSrcDS->MasterSrcDsr
This is a nested clientdataset scenario. When the master is open, only 1 record in the detail is returned. There should be 55 records. In fact, I can see the 55 records when the detail uniquery opens. The records are just not getting into the clientdataset, except for the first one.
I created a video illustrating the problem. The upper grid is the master query. The middle grid is the detail data in a clientdataset. The lower grid is attached to the uniquery acting as a datasource for the detail data.
http://www.mediafire.com/?yw3kk9wtl93reaz
Please tell me there is a Unidac setting I am missing and not another bug in basic operation. Thank you for any help you can provide.
How soon before the next release?