xBrowse: Process filtered rows only
Posted: Mon Jun 01, 2020 7:59 am
Hi Rao,
I have a 'Select All' checkbox. Right now it has this code attach to it
But it has been pointed out to me this logic is not accurate if someone did filtering prior to checking it as it will traverse the whole array, not just filtered ones
As shown in the screen above which is displaying an array of hashes, when user clicks 'Select All' it is expected only the two visible rows should have the select flag toggled.
How should I code oCbxAll:bChange so it updates only filtered rows?
TIA
I have a 'Select All' checkbox. Right now it has this code attach to it
Code: Select all
oCbxAll:bChange := <||
aeval(oBrw:aArrayData, {|h_| h_["select"] := lAll})
oBrw:refresh()
>
As shown in the screen above which is displaying an array of hashes, when user clicks 'Select All' it is expected only the two visible rows should have the select flag toggled.
How should I code oCbxAll:bChange so it updates only filtered rows?
TIA