Alright, now I added this to a separate button and the function is actually working as expected, selecting the intended records from the list when clicking the button.

Now when do I execute this procedure? When is the Selection List completely loaded?