gx-l |
| xavier10358 | |
Genexus 16, Java , Mysql. Tengo 2 tablas por ejemplo cliente y albaranes y preciso hacer un sum o un count de los registros que existen en albaranes de un cliente. Si el cliente se llama por ejemplo "CliCod" en ambas tablas, la sentencia se genera mal la sentencia sql, si en cambio, en una se llama "CliCod" y en la otra "AlbCliCod", se genera bien la sentencia. Saludos. -- *Xavier Villas* *DSI Software Factory* *International number **Cel: +372 814 32071* *España* *Mobil: +34 640 265 559* [image: Skype] infollei CONFIDENTIALITY NOTICE: This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error, please notify the sender. If you are reading this message and are not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. ----------------------------------------- Para Suscribirse/Desuscribirse: http://www.gxtechnical.com/cgi-bin/hforum.exe?2,3,30,1 Por consultas owner-gx-l@gxtech.com.uy |
|
|
| | |
xavier10358 | |
Hola Leandro.
El que no funciona es :
count(AbNum, CliCod = CliCod, 0);
el que funciona es :
count(AbNum, AlbCliCod = CliCod, 0);
Tengo que crear un subtipo, no puedo utilizar el mismo nombre de campo.
Y si la fórmula utiliza en el filtro un campo redundante, tampoco, o
siempre da 0 o suma todos los registros.
count(AbNum, AlbCliNIF = CliNIF, 0);
He visto que si lo pongo en la transacción, si que funciona, es al ponerlo
en una grilla de wp que falla.
Saludos.
Missatge de Leandro Minatel del dia dg., 15 de
març 2020 a les 22:49:
> Hola Xavier, cómo es tu codigo?
>
> On Sun, Mar 15, 2020 at 1:22 PM Xavier Villas
> |
|
|
|
|
Back to gx-l |
|