Closed knstvk closed 3 years ago
Now the filter doesn't show in "Add condition" dialog attributes which are references to entities from other data stores.
Now Filter can perform filtering by property that is association with entity from another DataStore.
Filter
For instance, we have the following stores and entities:
GuestInfo
Person
GuestInfo has Person property with single value cardinality. The code of GuestInfo:
@JmixEntity @Table(name = "GUEST_INFO") @Entity(name = "master_GuestInfo") public class GuestInfo { @JmixGeneratedValue @Column(name = "ID", nullable = false) @Id private UUID id; @SystemLevel @Column(name = "PERSON_ID") private UUID personId; @DependsOnProperties({"personId"}) @JmixProperty @Transient private Person person; // other fields // getters and setters
For the GuestInfo entity will able to show the Person attribute in conditions:
Filter with KeyValueEntity does not support this functionality and won't show such properties in the UI.
KeyValueEntity
Download demo project: demo.zip
verifid
Now the filter doesn't show in "Add condition" dialog attributes which are references to entities from other data stores.
Changes
Now
Filter
can perform filtering by property that is association with entity from another DataStore.For instance, we have the following stores and entities:
GuestInfo
entityPerson
entityGuestInfo
hasPerson
property with single value cardinality. The code ofGuestInfo
:For the
GuestInfo
entity will able to show thePerson
attribute in conditions:Limitations
Filter
withKeyValueEntity
does not support this functionality and won't show such properties in the UI.QA
Download demo project: demo.zip