on 12-23-2015 3:25 PM
Buenas tardes compañeros
tengo una nueva consulta
como puedo integrar un nuevo query en un layout ya creado. tengo mi layout pero me están pidiendo un nuevo dato que no fue tomado en cuenta al principio. no quiero realizar nueva mente toda la creación de layout, como puedo realizar esto?
Hola Antonio.
¿Cómo estructuraste tu reporte de Crystal, por medio de un comando o por medio de tablas?
Si solo necesitas añadir un campo, edita tu comando o agrega el campo directamente de la tabla a la que corresponde, debes saber la correspondencia que tiene tu nuevo campo con el layout ya creado.
Creo que sería mucho más fácil si compartes más información sobre tu layout y el campo que necesitas agregar.
Saludos.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
este es mi query inicial
select A.ReqName,C.Remarks,D.Remarks,A.Email,E.SeriesName,A.DocCur,A.U_Jefe_Directo,A.VatSum as 'iva',
,A.DocNum,A.DocDate,A.Doctype,A.Comments,A.DocDueDate,A.TaxDate,A.ReqDate,A.DocTotal as 'total con iva'
,B.ItemCode,B.Dscription,B.LineVendor,B.PQTReqDate,B.Quantity,B.unitMsr,B.Price,B.LineTotal as 'total sin iva'
from OPRQ A INNER JOIN PRQ1 B ON A.DocEntry = B.DocEntry
INNER JOIN OUDP C on A.Department = C.code
INNER JOIN OUBR D on A.Branch = D.code
INNER JOIN NNM1 E ON A.Series = E.Series
WHERE A.DocEntry = Dockey@
y quiero agregar este campo
SELECT VatSumSy FROM OPRQ
Pues en este caso no habría problema al ser un campo de tu tabla principal, solo edita el comando y agrégalo, por ejemplo:
select A.VatSUmSy, A.ReqName,C.Remarks,D.Remarks,A.Email,E.SeriesName,A.DocCur,A.U_Jefe_Directo,A.VatSum as 'iva',
,A.DocNum,A.DocDate,A.Doctype,A.Comments,A.DocDueDate,A.TaxDate,A.ReqDate,A.DocTotal as 'total con iva'
,B.ItemCode,B.Dscription,B.LineVendor,B.PQTReqDate,B.Quantity,B.unitMsr,B.Price,B.LineTotal as 'total sin iva'
from OPRQ A INNER JOIN PRQ1 B ON A.DocEntry = B.DocEntry
INNER JOIN OUDP C on A.Department = C.code
INNER JOIN OUBR D on A.Branch = D.code
INNER JOIN NNM1 E ON A.Series = E.Series
WHERE A.DocEntry = Dockey@
Y en el layout solo vasta con arrastrar el campo a la posición que deseas para él.
Suerte.
User | Count |
---|---|
102 | |
14 | |
10 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.