Lookup fields in another table
Publicado: Dom Sep 23, 2007 11:36 pm
Hi,
Still evaluating Xailer, now I wonder about "the best way" to handle this:
In many tables I have many fields with just a number, which relate to a
field in another table. Example: Customer->Postno relate to Postal->Postno.
When skip'ing the table I want to do a Postal->(DbSeek()) and SAY the
Postal->Post_name next to the Customer->Postno GET.
I've tried to handle this by putting code in the TDataSet:OnPostChange
event, and also by making a calculated field which calls a generic function
wich do the SEEK'ing and stuff. (In my first try I have not succeeded in
the calculated field approach, but I know it will work).
How have you guys implemented such linking to lookup fields in other tables?
(I will be using a SQL client/server (MySQL I think), but using
TDataSource/TDataSet that should not be relevant?)
Thanks for any suggestions and replies.
Regards,
Paal
Still evaluating Xailer, now I wonder about "the best way" to handle this:
In many tables I have many fields with just a number, which relate to a
field in another table. Example: Customer->Postno relate to Postal->Postno.
When skip'ing the table I want to do a Postal->(DbSeek()) and SAY the
Postal->Post_name next to the Customer->Postno GET.
I've tried to handle this by putting code in the TDataSet:OnPostChange
event, and also by making a calculated field which calls a generic function
wich do the SEEK'ing and stuff. (In my first try I have not succeeded in
the calculated field approach, but I know it will work).
How have you guys implemented such linking to lookup fields in other tables?
(I will be using a SQL client/server (MySQL I think), but using
TDataSource/TDataSet that should not be relevant?)
Thanks for any suggestions and replies.
Regards,
Paal