oBrw:Refresh(.T.) don't refresh new record

User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Post by Richard Chidiak »

Mr NageswaraRao

Yes this is exactly what we would expect

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post by nageswaragunupudi »

Mr Richard

Working with XBrowse 8.04 I found out more.

This is the only code that is needed:

Code: Select all

@ 0,0 XBROWSE oBrw COLUMNS "Name" SORT "NAME" ALIAS "TEST" COLOR CLR_BLUE,CLR_WHITE
oBrw:aCols[ 1 ]:nEditType := EDIT_GET
Even bOnPostEdit is provided by default. We do not have to write the PostEdit block unless we want more complex operation.

Another interesting thing is now xbrowse will automaticall decide whether it has to refresh the row only or the entire browse depending on whether we edited a sorted column or other column. So it is not even necessary for us to write obrw:Refesh().

When you download 8.04, please try replacing all the code with the above two lines only.
Regards

G. N. Rao.
Hyderabad, India
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Post by Richard Chidiak »

Mr NageswaraRao

I have installed and tested with fwh 8.04

The refresh problem is ok now

the new syntax is not working for me , i get an error message

Error occurred at: 04/14/08, 13:32:00
Error description: Error BASE/1005 Message not found: TXBRWCOLUMN:_CSORTODER

Stack Calls
===========
Called from: tobject.prg => TXBRWCOLUMN:ERROR(172)
Called from: tobject.prg => TXBRWCOLUMN:MSGNOTFOUND(205)
Called from: tobject.prg => TXBRWCOLUMN:_CSORTODER(0)
Called from: XBROWSE.PRG => XBROWSENEW(0)
Called from: test2.prg => MAIN(34)

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Richard,

Please download 8.04 again. Sorry for the inconveniencies, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply