Maintain the records marked with run button in navigation/paging

How can maintain the records marked with run button in navigation/paging.

Regards.

I am using this code but does not working

Put this code in the event ‘onFooter’:
You must enable the Footer in Layout
image