Table data binding

Hello,

I have a Cuba 6 app imported in Cuba 7.
Now I have to create a Report in new (empty Cuba 7) screen.
Is there any way to bind the (Cuba 6) data to a table? What is the right approach?

Regards,
-n

I’ve tried the next code but the table is empty:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<window xmlns="http://schemas.haulmont.com/cuba/screen/window.xsd"
        caption="msg://caption"
        focusComponent="paymenttable"
        messagesPack="com.crm.web.screens">
    <data readOnly="true">
        <collection id="paymentsDc"
            class="com.crm.entity.Payment"
            view="_local">

            <loader id="paymentDl">
                <query>
                    <![CDATA[select e from crm$Payment e]]>
                </query>
            </loader>
        </collection>
    </data>
 </hbox>
                <table id="paymenttable" height="100px" width="100%" dataContainer="paymentsDc">
                    <columns>
                        <column id="amount"/>
                    </columns>

                </table>
    </layout>
</window>

image
Original datasource is:

<groupDatasource id=“paymentsDs”

Make sure you have @LoadDataBeforeShow annotation on the screen controller.