I want to sum one column in xbrowse. If I sum all of records, there is not any problem using below.
- Code: Select all Expand view RUN
- if ! Empty( oCol := oBrw:oCol( "Ödeme Yeri" ) )
oCol:nHeadStrAlign := AL_LEFT
oCol:nDataStrAlign := AL_LEFT
oCol:nWidth := 70
oCol:bStrData:={|o| IIF((oBrw:cAlias)->OD_YERI="H","Havale","Büroda")}
oCol:cFooter := "Toplam"+CRLF+"Havale"+CRLF+"Büroda"
endif
if ! Empty( oCol := oBrw:oCol( "Tutar" ) )
oCol:nWidth := 90
oCol:nTotal := 0
oCol:lTotal := .t.
endif
oBrw:lFooter := .T.
oBrw:nFooterLines := 3
But I want to sum "Havale", "Büroda" and "all" records in "Ödeme Yeri" like that
- Code: Select all Expand view RUN
- Toplam 700
Havale 225
Büroda 475
Any help?