I'm using a Lightning Aura component and lightning:listView.
I wanna get the selected record from lightning:listView when I select the record like below img.
Successfully I get the selected record Id by using formula hyperlink,
but it occurs page reload, and I don't wanna reload the page.
And it should be clicked two times(double clicks).. so I wanna know how to choose a record by only one click.
Anyone knows how to get the selected record when select in lightning:listView?
Best Answer
Try This :
var tablecomp = component.find('WrapperTable');
selectedRows = tablecomp.getSelectedRows();