Diman
Admin
 Admin
| Posts: 1482 |  | Karma: 19 |
|
Re:Problem with master- detail
|
|
Posted: 2007/05/04 02:10 |
|
|
|
|
Is the problem that I MUST use the same fieldname in master and detailtable to connect? Yes, exactly. ThinDAC assigns the field values of master dataset to corresponding detail dataset parameters, where parameter name is the same as field name.
And of each master record change, ThinDAC will require detail records. Setting IndexFieldNames / IndexName, MasterFields and including fiDetails into FetchOptions.Cache, ThinDAC will apply range to the detail records. And if there are no records, then will requery detail records. So, detail records will be cached.
And also, you can use SQL command without parameters for detail dataset. In this case, ThinDAC will not requery detail records. And will just apply range, as described above.
Regards, Dmitry
|
|