FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Change Groupheaders in Xbrowse on new Values
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Change Groupheaders in Xbrowse on new Values
Posted: Sat Sep 09, 2017 08:03 AM
We can change the header with this code :

oBrw1:bChange := { || oBrw2:cHeaders := { FIELD->CODE + '1', FIELD->CODE + '2', FIELD->CODE + '3' }, oBrw2:RefreshHeaders() }

But can we also change the Groupheader ?

aMaand = Array with 12 months
nMaand is actual month

On start, the groepheader is Januari, but when I change the combo to March, it should change.

The Combo :

Code (fw): Select all Collapse
@ 65,550 COMBOBOX oCbx VAR nMaand SIZE 100,400 PIXEL HEIGHTGET 18 OF oDlg  ;
      ITEMS aMaanden ON CHANGE ( ;
         tn := oRs:FieldPos( "T" + LTrim( Str( nMaand ) ) + "_1" ), ;
         oBrw[ 6 ]:Refresh() )




:SetGroupHeader( aMaanden[nMaand], oBrw[6]:oCol("T1"):nCreationOrder, oBrw[6]:oCol("M4"):nCreationOrder ) // header Januari = 0K

Tried :

oBrw[6]:bChange := { || oBrw[6]:cGroupHeader := { aMaanden[nMaand] }, oBrw[6]:RefreshHeaders() }
Marc Venken

Using: FWH 23.08 with Harbour
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Re: Change Groupheaders in Xbrowse on new Values
Posted: Sat Sep 09, 2017 10:06 PM

Marc,

oBrowse:SetGroupHeader( 'NOVO TITULO', 1, 14 )

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin

Continue the discussion