I want to be able to change a default condition from the controtoler since I am reciving the parameter from the URL(this way I can re-use the screen). Fisrt i see the way of set in the view a condition y from the view, but i would like alse do this by code and not have the need o have this on the db. But then i would like to chage the default value in the request so I can have diferents calls.
take a look at FIlter#setParamValue(). It will set the value to the filter parameter if it exists.
Note, as JavaDoc says do not use it in InitEvent because the filter is not initialized by that time. ParamName can be found in the filter editor window (documentation).
Unfortunately, the only way to create conditions for Filter from the controller is by creating FilterEntity. It should contain conditions presented by XML. For instance:
Element <param> contains default value, for filter above it is NULL. You can create a few “demo” filters and see in the EntityInspector how to configure XML conditions.