xBrowse footer-values changing at runtime

xBrowse footer-values changing at runtime

Postby ukoenig » Mon Sep 21, 2015 1:32 pm

Hello,

I got some problems, changing xbrowse footer-values at runtime

Is it possible, to save the footer results to DBF-fields ?
For the 1. browser I used calculated values displayed in footers like :
oBrw1:aCols[5]:cFooter := nValue[1] because of a index UNIQUE problem.
Because of calculated values, I can update the footers.
It seems, that it doesn't work using TOTAL

1. creating the invoice MONTH-statistic
There are 10 different kinds of bills possible ( each column includes a style )
For the GREEN types, POINTS are defined and must be counted as well.
The total of the calculated footers and points is shown at the bottom.

Image

2. Adding the results of June to the YEAR-statistic

Image

3. I can clear the table, but impossible, to refresh the footer
The real footer-values are only visible on closing the statistic and reopen
after that, the footer is ok


I tested
oBrw2:RefreshFooters()
but no change

Image

I noticed a missing footer on field 13
the col-value is displayed.

Code: Select all  Expand view

// -- Field 13
oCol  := oBrw2:oCol( "PUNKTEGES" )
oCol:bStrData       := { || IIF( ("UMSATZ2")->PUNKTEGES > 0, ("UMSATZ2")->PUNKTEGES, " " ) }
oCol:cHeader        := "Punkte"
oCol:nHeadStrAlign   := AL_CENTER

I := 2
WITH OBJECT oBrw2
    FOR I := 2 TO 13
        :aCols[ I ]:nWidth := 65
        :aCols[ I ]:nDataStrAlign   := AL_RIGHT
        :aCols[ I ]:nHeadStrAlign   := AL_CENTER
        :MakeTotals()
        :aCols[ I ]:lTotal      := .T.
        :aCols[ I ]:nTotal      := 0
    NEXT
END
 


best regards
Uwe :?:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 37 guests