Skip to main content
Solved

Hide Prefilter in UI, but make available to Process Flow

  • February 16, 2022
  • 2 replies
  • 82 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?

Best answer by Anne Buit

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
)

 

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

Anne Buit
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • 639 replies
  • Answer
  • February 16, 2022

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!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings