Page 1 of 1
Re: report with tdatabase condition - resolved !!
Posted: Fri Apr 30, 2021 5:16 pm
by Silvio.Falconi
I wish insert the shadow of this column it ::oPrenota:datapayed not empty
COLUMN TITLE "CLIENTE " DATA ::oPrenota:GUEST SHADOW
how I can resolve ?
Re: report with tdatabase condition
Posted: Sat May 01, 2021 7:57 am
by Antonio Linares
Silvio,
Try it this way:
COLUMN oCol TITLE "CLIENTE " DATA ::oPrenota:GUEST SHADOW
ACTIVATE REPORT ... ON STARTLINE oCol:lShadow := ! Empty( ::oPrenota:datapayed )
Re: report with tdatabase condition
Posted: Sat May 01, 2021 3:32 pm
by Silvio.Falconi
Antonio,
give me this error
Error description: Error BASE/1003 Variabile inesistente: OCOL
Stack Calls
===========
Called from: source\spiaggia\PSituaz.prg => (b)TREPSITUAZIONE_ACTIVATE( 81 )
I sent you a test
Re: report with tdatabase condition
Posted: Sun May 02, 2021 2:16 pm
by Antonio Linares
A "local oCol" is missing
Re: report with tdatabase condition
Posted: Sun May 02, 2021 4:11 pm
by Silvio.Falconi
Antonio Linares wrote:A "local oCol" is missing
I put this local variable and it make error same
Code: Select all | Expand
METHOD Activate() CLASS TRepSituazione
local oCol
IF ::lActivate
::oReport:bSkip := { || ::oPrenota:skip(1) }
ACTIVATE REPORT ::oReport WHILE !::oPrenota:eof() ;
ON STARTLINE oCol:lShadow := ! Empty( ::oPrenota:DATAPAYED )
ENDIF
::oFont:End()
::oPrenota:SETFILTER("")
::oPrenota:Close()
RETURN NIL
Re: report with tdatabase condition - resolved !!
Posted: Sun May 02, 2021 4:16 pm
by Silvio.Falconi
Corrected
ACTIVATE REPORT ::oReport WHILE !::oPrenota:eof() ;
ON STARTLINE ::oReport:aColumns[ 3 ]:lShadow:= ! Empty( ::oPrenota:DATAPAYED )