view custom action act on all currently selected view items via the checkbox

view custom action act on all currently selected view items via the checkbox

hi,

i want to work on all the records that have been selected in a view using a custom action.
how do i get to the selected items in my custom action function?

thanks