Master-Detail with TZTable - selects all records
Posted: 08.05.2014, 12:24
First of all, thank you guys for your work, I'm currently migrating from BDE and Zeos seems very easy to migrate to.
But I noticed that if I use 2 TZTables for master-detail via MasterSource/MasterField/LinkedField the detail TZTable selects ALL records from the DB table. Is it really desired behavior?
I had to switch to queries and implement master-detail via DataSource and SQL 'select * from <table> where <keyfield>=:<keyfield>'. Now things work as they should but I slighly miss convenient TableName and FieldNames design-time assignment.
So my suggestion is to modify TZTable so that it would act as Query with mastersource link.
Btw, what's the meaning of MasterSource/MasterField for Queries?
But I noticed that if I use 2 TZTables for master-detail via MasterSource/MasterField/LinkedField the detail TZTable selects ALL records from the DB table. Is it really desired behavior?
I had to switch to queries and implement master-detail via DataSource and SQL 'select * from <table> where <keyfield>=:<keyfield>'. Now things work as they should but I slighly miss convenient TableName and FieldNames design-time assignment.
So my suggestion is to modify TZTable so that it would act as Query with mastersource link.
Btw, what's the meaning of MasterSource/MasterField for Queries?