Skip to main content
Solved

API prefilter toggle


Forum|alt.badge.img+2

Hi i have a prefilter on some of my tables.

What syntax do i use to toggle them on and off when calling the api of that table? 

e.g.
{{baseUrl}}/employee?$prefilter=only_active_employees

How to deactivate the only active employees prefilter?

Best answer by Anne Buit

A prefilter that has been set to On-hidden or On-locked cannot be disabled via the API.

You can leave the prefilter On or Off at the model settings and only make it On hidden by enabling Data authorization and turning off Visible for specific roles.

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

3 replies

Tim de Lang
Moderator
Forum|alt.badge.img+4
  • Moderator
  • 90 replies
  • January 30, 2023

Hi Anne,

You can omit the $prefilter to not have any prefiltes active.

Kind regards,

Tim de Lang


Forum|alt.badge.img+2
  • Author
  • Partner
  • 14 replies
  • January 30, 2023

This does not work if the default behaviour of the prefilter is on like this?

Is it possible to turn it off in my call? 
 


Anne Buit
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • 637 replies
  • Answer
  • January 30, 2023

A prefilter that has been set to On-hidden or On-locked cannot be disabled via the API.

You can leave the prefilter On or Off at the model settings and only make it On hidden by enabling Data authorization and turning off Visible for specific roles.


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