could you make a small example to make a Tree from an xBrowse for a fool like me,
allowing to modify a branch and refresh the browse? I have seen several answers
in the forum but none to refresh the browse
Just I have this code:
- Code: Select all Expand view RUN
REDEFINE XBROWSE oBrw ID 200 OF oDlg;
DATASOURCE oRsTie;
COLUMNS "CLI_NOM","TIE_NOM","TIE_NUM";
HEADERS "Razón Social del Cliente","Nombre de la tienda","Número";
COLSIZES 250,200,50;
PICTURES Nil,Nil,"@Z 9999999";
JUSTIFY {AL_LEFT,AL_LEFT,AL_RIGHT};
FOOTERS AUTOSORT
WITH OBJECT oBrw
:l2007 := (.F.)
:lHScroll := (.F.)
:lVScroll := (.F.)
:nMarqueeStyle := MARQSTYLE_HIGHLROW
:nColDividerStyle := LINESTYLE_LIGHTGRAY
:nRowDividerStyle := LINESTYLE_LIGHTGRAY
:nStretchCol := STRETCHCOL_WIDEST
:nHeaderHeight := 25
:nRowHeight := 22
:nFooterHeight := 25
:bClrHeader := { || {CLR_WHITE,CLR_BLACK} }
:bClrFooter := { || {CLR_WHITE,CLR_BLACK} }
:bClrSel := { || IF( oBrw:KeyNo % oApp:nRowsInt == 0 ,{ CLR_BLACK, oApp:nRowParClr },{ CLR_BLACK, oApp:nRowNonClr }) }
:bClrSelFocus := { || {oApp:nFClrFocus,oApp:nBClrFocus} }
:bClrStd := { || IF( oBrw:KeyNo % oApp:nRowsInt == 0 ,{ CLR_BLACK, oApp:nRowParClr },{ CLR_BLACK, oApp:nRowNonClr }) }
:nRecSelColor := oApp:nRowParClr
:lDisplayZeros := (.F.)
:blDblClick := { | nRow, nCol, nKey | Editar(oBrw,(.F.))}
:bKeyDown := { | nKey, nFlags | IIF(nKey == VK_RETURN,Editar(oBrw,(.F.)),)}
:SetTree()
:oTree:OpenAll()
WITH OBJECT :aCols[01]
:cOrder := "A"
END
END
thank you very much