How would I pass multiple IDs into a function or report workflow?

How would I pass multiple IDs into a function or report workflow?

I'm currently working on an action item on a report and I'm trying to figure out how to run multiple IDs through it. It should first grab the multiple IDs and then open the stateless form with openURL, and put those IDs in a multi select field. I'm just unsure on how to get those IDs. Here's my current code:
  1. void Availability.BulkEditTime(list id1)
  2. {
  3. info id1;
  4. openURL("#Form:Edit_Event_Time?Events=" + id1,"popup window","height=510px,width=420px");
  5. }