urlQueryParameters

Jmix 2.6.1

I try to use the facet <urlQueryParameters> <propertyFilter id=“amountProp”> as below

      <urlQueryParameters>
         <genericFilter component="genericFilter"/>
         <pagination component="pagination"/>
			<propertyFilter component="amountProp"/>
		</urlQueryParameters>
		<settings auto="true"/>
   </facets>

   <layout>
      <genericFilter id="genericFilter" dataLoader="accBookingsesDl" opened="false">
         <properties include=".*"/>
         <configurations>
            <configuration id="FilterDate" name="Filter Date" default="true">
               <propertyFilter id="amountProp" property="amount" operation="EQUAL" label="Betrag" operationEditable="true"/>
            </configuration>
         </configurations>
      </genericFilter>

In the IDE all looks fine but when I open the program I get

IllegalArgumentException: Component with id 'amountProp' not found

The AI suggest me this construction too;/

What did I do wrong ?

Regards

Felix

Hi, @f.zehnder

This case does not work because the amountProp property filter is a part of configuration of generic filter. In this case, it is required to add <genericFilter> usage to the URL query parameters facet that supports query parameters for a generic filter.

Regards,
Maria.