How to "activate" jpqlCondition in DesignTimeConfiguration of a filter?

Hi all,

I am using a design time configuration for my filter that is created in the descriptor of the screen. It has a few propertyFilter and also one special jpqlFilter with class Void so I get a checkbox in the filter whith which I can turn the confition on and off.
I want to set the filter values in code and I achieved to get the propertyFilter/propertyCondition and just use setParameterValue for example to set a text in a search field for property x.
I am looking for a way now to set the checkbox but I can’t find something similar to the propertyCondition where I can say: jpqlCondition.setValue=true.

I will attach the definition and what I use to get to the conditions.

Thanks for any hints on that :slight_smile:

image

image

One possible way to do it could be to find the filter part for the jpql and then copy the “where” over to the condition like indicated in the screenshot when I want it to be active. But what about the parameterValuesMap? Will the checkbox be checked in the UI? It sound a bit too hacky…

image

Ok, so I found I can inject the JpqlFilter in the screen and use .setValue.
However, I want my system to be more flexible so that others who open a screen with a filter can just say: condition with id=“test” should be checked, condition with id=“name” should be “John” for example.

So finding the right filter/condition by id should work like this below. Of course, check for parameterName to get the correct one. If this is way too complicated please let me know, otherwise I think I can work with that.

image