You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose, there is a KeyValueCollection in the screen:
<keyValueCollectionid="ordersKvDc">
<loaderid="ordersKvDl">
<query>
select o, c from reptest_Order o join o.customer c
</query>
</loader>
<properties>
<propertyname="order"class="com.company.reptest.entity.Order"></property>
<propertyname="customer"class="com.company.reptest.entity.Customer"></property>
</properties>
</keyValueCollection>
If in the <filter> component we define a nested property (like order.number, not just order):
then when we try to add a filter condition, we get the following exception:
com.haulmont.cuba.core.global.DevelopmentException: The number of KeyValueEntity properties required is greater than the number of the selected expressions in the data loader query
at com.haulmont.cuba.gui.components.filter.addcondition.ConditionDescriptorsTreeBuilder.createConditionDescriptorForKeyValueMetaProperty(ConditionDescriptorsTreeBuilder.java:265)
at com.haulmont.cuba.gui.components.filter.addcondition.ConditionDescriptorsTreeBuilder.build(ConditionDescriptorsTreeBuilder.java:128)
at com.haulmont.cuba.gui.components.filter.AddConditionHelper.addCondition(AddConditionHelper.java:94)
at com.haulmont.cuba.gui.components.filter.FilterDelegateImpl.lambda$createControlsLayoutForGeneric$2(FilterDelegateImpl.java:344)
at com.haulmont.bali.events.EventHub.publish(EventHub.java:170)
at com.haulmont.cuba.web.gui.components.WebAbstractComponent.publish(WebAbstractComponent.java:100)
at com.haulmont.cuba.web.gui.components.WebButton.buttonClicked(WebButton.java:70)
at com.haulmont.cuba.web.widgets.CubaButton.fireClick(CubaButton.java:76)
at com.vaadin.ui.Button$1.click(Button.java:57)
Platform version: 7.2.18
Suppose, there is a KeyValueCollection in the screen:
If in the
<filter>
component we define a nested property (likeorder.number
, not justorder
):then when we try to add a filter condition, we get the following exception:
See forum topic.
The sample project: reptest.zip
Open the Orders screen and try to add a filter condition
The text was updated successfully, but these errors were encountered: