Ver Mensaje Individual
  #1  
Antiguo 16-12-2021
pabje pabje is offline
Miembro
 
Registrado: dic 2021
Posts: 10
Reputación: 0
pabje Va por buen camino
Como usar dos DataSets en MS Sql Server

Hola soy nuevo en este foro.

Mi consulta es la siguiente como puedo usar campos de dos DataSets para calcular el importe total de mi reporte hecho en Report Builder.

Son dos DataSet llamados Factura_Winters y Factura_Winters2. Quisiera mostrarle con imágenes para aclarar la pregunta pero me aparece un mensaje que dice que aun no tengo permtido poner enlaces ni imágenes en el tema.

Esta es la operación que quiero hacer para calcular el importe total de mi reporte remitos. El campo importe total se llama IMPUESTO_IVA30:

Cita:
= Fields!DOCAMNT.Value, "Factura_Winters" - Fields!TAXAMNT.Value,"Factura_Winters" - FieldIs!IMPNOREMITO.Value, "Factura_Winters2"
Para ingresar esta fórmula lo hago desde la expresión del campo IMPUESTO_IVA30.

El editor de reportes me arroja error que es el sigueinte:
Cita:
System.Web.Services.Protocols.SoapException: The Value expression for the text box ‘CAI_DUE_DATE’ refers directly to the field ‘CAI_DUE_STR’ without specifying a dataset aggregate. When the report contains multiple datasets, field references outside of a data region must be contained within aggregate functions which specify a dataset scope.
at
Aclaración: los dos dataset estan configurado en sus propiedades con : use a dataset embedded in my report.

Si me pueden ayudar. Gracias.

Última edición por Casimiro Notevi fecha: 16-12-2021 a las 18:00:26.
Responder Con Cita