strange error on report

strange error on report

Postby Silvio.Falconi » Sun May 26, 2019 12:16 pm

I call report with

ACTION oApp:oGrid:Report()

oGrid is a xbrowse

and I have this

Image

the problem is that the first 4 records have the ELATTIVO LOGIC field = .T. as you can see here :

Image

why it report FALSE instead of TRUE ?
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: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: strange error on report

Postby nageswaragunupudi » Sun May 26, 2019 1:02 pm

The xbrowse you are displaying is different from the report you are displaying
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: strange error on report

Postby Silvio.Falconi » Sun May 26, 2019 2:28 pm

this is the original


Image

Image

I saw on the last column it not print any record ( bloccato field)


Code: Select all  Expand view
aBrowse   := { { "ELATTIVO",  i18n("Attivo"),,               80, },;
                  { "ELNOME",    i18n("Descrizione elemento"),, 80, },;
                  { "",          i18n("Colore "),,              80, },;
                  { "ELCOLORE",  i18n("Descr. Colore"),,        80, },;
                  { "ELORDINE",  i18n("Ordine"),,               80, },;
                  { "ELLOCK",    i18n("Bloccato"),,             200,} }


     @0,nSplit+2 XBROWSE oApp:oGrid  ;
           SIZE oApp():oDlg:nGridBottom,oApp():oDlg:nGridRight PIXEL;
           OF oApp():oDlg ;
           DATASOURCE oElementi COLUMNS aBrowse


  WITH OBJECT  oApp():oGrid
             WITH OBJECT  oApp():oGrid:aCols[1]
                     :AddResource("BTN_PNG_TICK")
                     :AddResource("BTN_PNG_TICK_RED")
                     :bBmpData := { || IIF( oElementi:ELATTIVO,1,2) }
                     :bEditValue := ""
                     :bStrData := ""
                  END

              WITH OBJECT  oApp():oGrid:aCols[3]
                :bClrStd := {|| { CLR_WHITE, GetBackColor(oElementi:ELCOLORE) } }
                :bClrSel := {|| { CLR_WHITE, GetBackColor(oElementi:ELCOLORE) } }
                :bClrSelFocus := {|| { CLR_WHITE, GetBackColor(oElementi:ELCOLORE) } }
               END

                  WITH OBJECT  oApp():oGrid:aCols[6]
                              :AddResource("BTN_PNG_LOCKSI")
                             * :AddResource("BTN_PNG_LOCKNO")
                              :bBmpData := { || IIF( oElementi:ELLOCK,1,) }
                              :bEditValue := { || NIL  }
                   END


                      :nClrBorder := CLR_GRAY
                      :nMarqueeStyle       := MARQSTYLE_HIGHLWIN7
                      :lHscroll            := .F.
                      :l2007               := .F.
                      :l2015               := .T.
                      :nStretchCol         := STRETCHCOL_WIDEST
                      :lAllowRowSizing     := .F.
                      :lAllowColSwapping   := .F.
                      :lAllowColHiding     := .F.
                      :lRecordSelector     := .F.
                      :nColDividerStyle    := LINESTYLE_LIGHTGRAY
                      :nRowDividerStyle    := LINESTYLE_LIGHTGRAY
                      :nRowDividerStyle    := LINESTYLE_NOLINES
                      :nColDividerStyle    := LINESTYLE_LIGHTGRAY
                      :CreateFromCode()
   END








 
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: 7033
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], wilsongamboa and 52 guests