FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour XBROWSE TREE Refresh problem
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
XBROWSE TREE Refresh problem
Posted: Wed Mar 17, 2021 09:06 AM
Hi,

I setup xbrowse like below.

Code (fw): Select all Collapse
    oBrw:SetTree( 3 )
    oBrw:oTree:OpenAll()
  oBrw:aCols[ 1 ]:AddBitmap( { FWDArrow(), FWRArrow(), GetTreeBmps()[ 2 ] } )


It is executed perfectly. But the data is changed later. How Can I refresh tree again in xbrowse.

I tried obrw:refresh(). I does not work.
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: XBROWSE TREE Refresh problem
Posted: Wed Mar 17, 2021 10:28 AM

If you do not change data in the first 3 fields but change data in the other fields you can refresh the data.
There should be no problem at all.

Regards



G. N. Rao.

Hyderabad, India
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: XBROWSE TREE Refresh problem
Posted: Wed Mar 17, 2021 11:57 AM
nageswaragunupudi wrote:If you do not change data in the first 3 fields but change data in the other fields you can refresh the data.
There should be no problem at all.


Hi Mr. Rao,

I changed ones of the first 3 fields and want to refresh the tree.
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: XBROWSE TREE Refresh problem
Posted: Wed Mar 17, 2021 01:12 PM

This is actually intended for cases where the first n fields would not be modified.
Anyway please try to change oBrw:oTreeItem:cPrompt also when you modify 3rd field.

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion