Deep composition up to 2 levels without nested datasources

Hi, i have been trying to create a deep composition schema without using nested datasources, the main inconvenience is that i need to create child entities of multiples class wich share same inheritance. so i have three composition levels and the entities design is as follows:

InspeccionForm.items
±- InspeccionFormItem (parent class, the user can create any of these childs so this entity break nested composition from design model)
±— InspeccionFormItemAlfanumeric
±— InspeccionFormItemNumeric
±— InspeccionFormItemMultichoice.choices
±— InspeccionFormChoice

image
image
image

So the user can create items of distinct types from the dropdown menu. I only need to known if there is a simple way to attach all created entities from different editors and data sources in a single commit transaction, like nested data sources do but without using them (i can’t use them).

image
image
image
image

I only need to known if there is a simple way to attach all created entities from different editors and data sources in a single commit transaction

The first thing that came to my mind is to provide a custom DataSupplier to your editor screens and intercept committed instances. Collect them somehow and pass to the BeforeCommitListener of the main screen when it saves changes.

This use case will be much easier to implement in the upcoming version 7.

Hi Konstantin, thanks for your response i will work in that direction.