jmix-framework / jmix

Jmix framework
https://www.jmix.io
Apache License 2.0
606 stars 122 forks source link

Dynamic attributes that are of the related entity are not supported in generic filter #2879

Open rusiaikinat opened 8 months ago

rusiaikinat commented 8 months ago

Environment

Jmix version: 2.2.999-SNAPSHOT

Bug Description

https://github.com/jmix-framework/jmix/issues/2343#issuecomment-1938108509 if the entities are linked by association, then when adding a filter to the linked entity, the dynamic attribute field is not comboBox

fractal3000 commented 1 month ago

See io.jmix.dynattrflowui.impl.factory.DynAttrPropertyFilterComponentGenerationStrategy#createComponent. It doesn't support case when context.getProperty() value is path with dot delimiter but not a single attribute name.

fractal3000 commented 1 month ago

Being suggested solution is to hide dynamic attributes from generic filter if they are not at the first level of the objects' hyerarchy.