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

Postby Richard Chidiak » Sat Apr 12, 2008 8:55 am

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
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby nageswaragunupudi » Sat Apr 12, 2008 11:27 am

Mr Richard

Working with XBrowse 8.04 I found out more.

This is the only code that is needed:
Code: Select all  Expand view
@ 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
nageswaragunupudi
 
Posts: 10624
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby Richard Chidiak » Mon Apr 14, 2008 11:34 am

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
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Antonio Linares » Mon Apr 14, 2008 11:52 am

Richard,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 92 guests