Hey
Would be easier if you could share the OML file.
But from what I can see, you need to reference the attribute id from the entity with the options, that way you can pass which options are selected or not for each record. But I am not completely sure, that's why I would need to see how did you build your entities.
Regards,
Márcio