Hi all
I want to make a single view to report several reports whose content is very similar. I create a combo with the different reports that are changed by pressing the PRINT button. The vDATA are loaded fine, but when building the report some columns are unknown, apparently it does not refresh the structure of the new report.
Code:
Procedure OnFill
Forward Send OnFill
Send AddComboItem "EjPacOrigin.DR" "Pac Inicial"
Send AddComboItem "EjecutaPac.DR" "Pac ejecucion"
Send AddComboItem "EjecucionC.dr" "Pac Saldos"
End_Procedure
Code:
Procedure GenerarPptoEjeecucion_A
String sModelo sReportId
WebGet psValue of oWebModelo to sModelo
Set psReportName of oRepoPptoEjeecucion_A to sModelo
Send GenerateReport of oRepoPptoEjeecucion_A
Get OpenReport of oRepoPptoEjeecucion_A to sReportId
If (sReportId <> '') Begin
Send CloseReport of oRepoPptoEjeecucion_A sReportId
Send RemoveAllFilters of oRepoPptoEjeecucion_A sReportId
End
End_Procedure
Edgar