2nd Composition Dc - now appearing in screen designer - bug?

Hi
I have 2 levels of composition that works in legacy screen but while I am trying to create a screen in new platform version (Studio 10) I don’t see the data container for the 2nd level composition when the screen is created. I tried to create it manually, I don’t see the property for the 2nd composition to select.

04%20PM

Is it a bug?

Please find attached a demo app where you will find the Delivery composition under InvoiceLine is not working

demo-cuba.zip (105.0 KB)

1 Like

Hi.
Thank you for reporting the problem. We have created a YouTrack issue.
As a workaround, you can define collection datasource from the XML:

 <collection id="invoiceLineDeliveryDc" property="invoiceLineDelivery"/>
<data>
        <instance id="invoiceDc"
                  class="com.inteacc.demo.entity.Invoice"
                  view="invoice-view">
            <loader/>
            <collection id="invoiceLineDc" property="invoiceLine">
                <collection id="invoiceLineDeliveryDc" property="invoiceLineDelivery"/>
            </collection>
        </instance>
        <collection id="customersDc" class="com.inteacc.demo.entity.Customer" view="_minimal">
            <loader id="customersLc">
                <query>
                    <![CDATA[select e from democuba_Customer e]]>
                </query>
            </loader>
        </collection>
    </data>

Datasource will be displayed in the designer
image

1 Like