I’m getting some problems trying to open a new screen from an entity detail to view related entities.
I’m using RelatedEnitiesBuilder to show the screen as follows:
The new screen (a browse screen on related entity) is shown but objects are not filtered and the message “Browse screen does not have a suitable filter” appears.
Which kind of filter is required in the screen and how can I create it?
java.lang.IllegalStateException: Range is datatype
at com.haulmont.chile.core.model.impl.DatatypeRange.asClass(DatatypeRange.java:35)
at com.haulmont.cuba.gui.relatedentities.RelatedEntitiesBean.lambda$buildScreen$1(RelatedEntitiesBean.java:453)
Related entities API allows you to show entities from property with association type, not an id.
In your case it will be possible to show related entities only for TkMov entity because it contains Tk.
If you want to show which entities (TkMov) related with Tk you can load them with nested collection.
See demo project how to load nested colletion of entities and show related entities using RelatedEntitiesBuilder: demo.zip (85.6 KB)