Hi @Pisko and Welcome,
The first problem is that I don't know how to definite the button id if i create them dynamically so I cannot identify which buttons are pressed to save the answers in the database.
Unfortunately you cant assign an id for dynamically created items. Check this for more details.
Another problem is that I cannot create Exclusive Groups dynamically.
I think you can use a ExclusiveGroup here.