Sync xbrowser
Posted:
Mon Dec 18, 2017 1:13 pm
by Natter
Hi, all !
There are 2 xBrowser with arrays of the same size. How can I sync them when scrolling ?
Re: Sync xbrowser
Posted:
Mon Dec 18, 2017 2:27 pm
by Rick Lipkin
Natter
Consider using
- Code: Select all Expand view
oLbx:bChange := { || _DoSomething() }
Add this codeblock to the xBrowse you want to scroll and insert your code ( _DoSomething() )in the code block to find the matching records in xBrowse 2
Rick Lipkin
Re: Sync xbrowser
Posted:
Tue Dec 19, 2017 6:00 am
by Natter
Thank you for your help. It turned out
Re: Sync xbrowser
Posted:
Tue Dec 19, 2017 8:37 am
by nageswaragunupudi
I am elaborating on Mr Rick's advice:
- Code: Select all Expand view
oBrw1:bChange := { || oBrw2:nArrayAt := oBrw1:nArrayAt, oBrw2:nRowSel := oBrw1:nRowSel, oBrw2:Refresh()}