Page 1 of 1

xBrowse: bOnRowLeave

Posted: Fri Apr 17, 2020 2:55 am
by hua
I want to get the data of the row which user just left.

I can't use :bChange as :aRow() will show the data of current row I'm at.

I saw and tried :bOnRowLeave but my test seems to indicate it also doesn't give the result I'm looking for.

What else can I try?
TIA

p.s. How to get oBrw:report() to print logical field as Yes or No instead of .t., .f.?

Re: xBrowse: bOnRowLeave

Posted: Fri Apr 17, 2020 3:17 am
by cnavarro
Try with bLButtonUp

Re: xBrowse: bOnRowLeave

Posted: Fri Apr 17, 2020 3:31 am
by hua
cnavarro wrote:Try with bLButtonUp


Doesn't work when navigating with keyboard. If navigate with mouse it'll also return the current row not the previous active row

Re: xBrowse: bOnRowLeave

Posted: Fri Apr 17, 2020 6:46 am
by hua
Tried :bEditValid but seems checkbox won't trigger it

Re: xBrowse: bOnRowLeave

Posted: Fri Apr 17, 2020 3:18 pm
by nageswaragunupudi
I saw and tried :bOnRowLeave but my test seems to indicate it also doesn't give the result I'm looking for.


:bOnRowLeave was actually intended for this purpose only, but it is not working reliably :(

Re: xBrowse: bOnRowLeave

Posted: Sat Apr 18, 2020 4:32 am
by hua
Rao,
I can do a workaround using bEditValid for Gets but has no solution for checkboxes.

Any idea?

Re: xBrowse: bOnRowLeave

Posted: Sat Apr 18, 2020 4:43 am
by nageswaragunupudi
We need to improve on the usage of bOnRowLeave.
Will you be able to do some tests?

Re: xBrowse: bOnRowLeave

Posted: Mon Apr 20, 2020 1:33 am
by hua
Sure Rao. What do you need ?