Closed glebfox closed 3 months ago
Could you provide more information about the issue? Which container type is not considered correct?
Could you provide more information about the issue? Which container type is not considered correct?
Instance container cannot be used as dataContainer
for DataGrid or itemsContainer
for ComboBox like components
Using CollectionPropertyContainer
to display a selection list is valid for Jmix Framework.
<data>
<instance id="orderDc"
class="com.company.master.entity.Order">
<fetchPlan extends="_base">
<property name="customer" fetchPlan="_instance_name"/>
<property name="orderItems" fetchPlan="_base"/>
</fetchPlan>
<collection id="orderItemsDc" property="orderItems"/>
<loader id="orderDl"/>
</instance>
</data>
<layout>
<!-- some code -->
<textField label="Favorite" dataContainer="orderItemsDc" property="name" readOnly="true"/>
</layout>
Result:
See https://github.com/cuba-platform/cuba/issues/3173 as an example