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
In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Lookup fields in another table
-
- Mensajes: 216
- Registrado: Dom Sep 23, 2007 11:08 pm
- ignacio
- Site Admin
- Mensajes: 9469
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
Lookup fields in another table
Dear Sir,
If you are using MySQL make the select statemente so includes all the tables
involved. Take a look at the JOIN command of SQL.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Mahanimann" <paaldalen@gmail.com> escribió en el mensaje
news:46f6dc57$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> 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
>
If you are using MySQL make the select statemente so includes all the tables
involved. Take a look at the JOIN command of SQL.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Mahanimann" <paaldalen@gmail.com> escribió en el mensaje
news:46f6dc57$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> 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
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
-
- Mensajes: 216
- Registrado: Dom Sep 23, 2007 11:08 pm
Lookup fields in another table
> If you are using MySQL make the select statemente so includes all the
> tables involved. Take a look at the JOIN command of SQL.
I did, but somehow only got readonly cursors. I know how to do it now
Thanks for the reply,
Paal
> tables involved. Take a look at the JOIN command of SQL.
I did, but somehow only got readonly cursors. I know how to do it now

Thanks for the reply,
Paal