Default value expression

Is there a way, in a filter, to specify that the default value is an expression?

What I’m trying to accomplish is to pull a company-specific attribute as the default value for a ‘Team’ field. For example, if the logged-in user is a member of Blue Team, then I would want the default value for a custom filter on the Application Folders to be “blue” for the Team field.

Does CUBA support EL or some groovy syntax in the “Edit Filter” dialog?

Does that make sense?

Thanks ahead of time!

Hi @jason,
I’m not an expert, but I think you can accomplish what you are looking for without EL ou groovy syntax.

You can set filter values on the screen controller (see this link).

You may need to create the filter in advance (see this link. Look for “Screen invocation parameters” section).

Regards.

Hi @peterson.machado,

Thank you. I will look through this and see if it does what I need.

Again, thanks!

Jason