Any way to get table selected records outside the table function in a custom page

Hi guys, i have a custom page with table and forms, the table is selectable, i need to get the selected records outside of the table function in another function in the custom page. i tried $this->getSelectedTableRecords() but returns empty always, is it even possible?
Was this page helpful?