I need a predefined jpqlFilter that supports a custom component like the propertyFilter. It is unclear to me if this is supported or not. And if not, how to solve this?
The question is similar to that of Custom filter field although there the focus is on the jmix.ui.component.entity-field-type property.
I’m looking for something like
<filter id="filter" dataLoader="dossiersDl">
<properties excludeProperties="id, version,createTs,createdBy,updateTs,updatedBy,deleteTs,deletedBy"
include=".*"/>
<conditions>
<jpqlFilter caption="msg://filter_broker" parameterClass="eu.octorilla.contact.model.Company">
<condition>
<c:jpql>
<c:join>join {E}.parties brokerParty join brokerParty.company broker</c:join>
<c:where>brokerParty.role = 'BROKER' and broker.id = ?</c:where>
</c:jpql>
<entityComboBox metaClass="octo_Company" optionsContainer="brokerCandidatesDc">
<actions>
<action id="lookup" type="entity_lookup"/>
<action id="clear" type="entity_clear"/>
</actions>
</entityComboBox>
</condition>
</jpqlFilter>
</conditions>
</filter>
More specifically Im looking for
- The option to specify the used component and actions
- being able to specify the optionsContainer
Jmix version: 1.5.4
Jmix Studio plugin version: 2.1.1-233
IntelliJ version: IntelliJ IDEA 2023.3 (Ultimate Edition)