Trying to create 2 levels of nesting in 2.3

Hello,

I am having trouble trying to create views with more than one level of nesting, similar to guide example of Pet to Health Record to Health Record Attachment.

This is something I used to do in CUBA but can’t seem to get working in Jmix 2.3.

I created the attached sample project that shows simple Gate within Terminal within Airport structure. But the Terminal detail screen is not getting the parent Airport reference. I tried passing reference using @Install and Handler but neither worked well.

try-nesting.zip (112.2 KB)

Can someone point me in the right direction?

Hi,

Could you please explain in more detail what went wrong? For now I only see that list_create and list_edit actions for composition entities missing openMode=DIALOG which you can set either using Studio Properties panel or in XML:

Screenshot 2024-07-19 at 13.44.48

Regards,
Gleb

Interesting. I didn’t think DIALOG mode was necessary to make the composition work. I don’t remember it being like that in the past. I wish it worked in screen mode because my real application has many fields but I can live with this. Thanks for your help.

Now you have two ways of opening views: navigation and dialog. Navigation to a view destroys the previously opened view, so it cannot be used for editing compositions.

See more details in the docs.