Hi Kok,
You can create a local variable of list type may be of text type(may be of your choice) and then you can append that list one by one by adding the items to it(using list append system action) and at final stage you can call server action to save that record in the database. May i know where you got stuck while implementing this logic?
Regards,
Manish Jawla