Re: report with tdatabase condition - resolved !!

Re: report with tdatabase condition - resolved !!

Postby Silvio.Falconi » Fri Apr 30, 2021 5:16 pm

I wish insert the shadow of this column it ::oPrenota:datapayed not empty

COLUMN TITLE "CLIENTE " DATA ::oPrenota:GUEST SHADOW

how I can resolve ?
Last edited by Silvio.Falconi on Tue May 04, 2021 7:02 am, edited 1 time in total.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7048
Joined: Thu Oct 18, 2012 7:17 pm

Re: report with tdatabase condition

Postby Antonio Linares » Sat May 01, 2021 7:57 am

Silvio,

Try it this way:

COLUMN oCol TITLE "CLIENTE " DATA ::oPrenota:GUEST SHADOW

ACTIVATE REPORT ... ON STARTLINE oCol:lShadow := ! Empty( ::oPrenota:datapayed )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42076
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: report with tdatabase condition

Postby Silvio.Falconi » Sat May 01, 2021 3:32 pm

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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7048
Joined: Thu Oct 18, 2012 7:17 pm

Re: report with tdatabase condition

Postby Antonio Linares » Sun May 02, 2021 2:16 pm

A "local oCol" is missing
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42076
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: report with tdatabase condition

Postby Silvio.Falconi » Sun May 02, 2021 4:11 pm

Antonio Linares wrote:A "local oCol" is missing


I put this local variable and it make error same

Code: Select all  Expand view
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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7048
Joined: Thu Oct 18, 2012 7:17 pm

Re: report with tdatabase condition - resolved !!

Postby Silvio.Falconi » Sun May 02, 2021 4:16 pm

Corrected

ACTIVATE REPORT ::oReport WHILE !::oPrenota:eof() ;
ON STARTLINE ::oReport:aColumns[ 3 ]:lShadow:= ! Empty( ::oPrenota:DATAPAYED )
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7048
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 103 guests