Solved

Hide Prefilter in UI, but make available to Process Flow

  • 16 February 2022
  • 2 replies
  • 75 views

We’ve built some prefilters that only function if certain prerequisites are filled, we’ve arranged that these prerequisites are filled in a process flow (triggered by a task) and eventually that prefilter will be toggled using the change prefilters process step.

That all works great! however our user can also see the prefilter and click on it on their own, that’s unfortunate since it won’t work when the user does that. is there a way to hide it from user selection without disabling it for the process flow?

icon

Best answer by Anne Buit 16 February 2022, 15:14

View original

This topic has been closed for comments

2 replies

Userlevel 7
Badge +5

Hi Selby, is it possible to store the fact that this prerequisite has been met with the case at hand in the data?

You could have a hidden, always activated prefilter with a query that basically does not do any filtering when the prerequisite is not yet met and only applies the filtering when the prerequisite is met. (pseudo):

exists(
select 1
from subject s
where s.subject_id = t1.subject_id
and s.prerequisite_met = 0)
or (
t1.actual_conditions_for_filtering
)

 

@Anne Buit That will work great, thanks for the recommendation!