How can I use a filter which cannot be changed?

How can I use a filter which cannot be changed?

JeKayJeKay Posts: 2Questions: 1Answers: 0

I want to implement a filter at a column which cannot be changed or deleted. A fixed static filter which is applied and cannot be changed on the page (table) view.

Is there a way to do this?

I want to use this, to show the same table with different filters on different pages, but the viewers on each page should not be allowed to cancel/delete this static filter. This is for different logged in users, so they see only their filtered view.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @JeKay ,

    You can issue the API call column().search() to filter a specific column. The user wouldn't see this filter, so to them it wouldn't be changeable or deleteable. They could, with some knowledge, go into the console and remove that search, but it would be unlikely.

    Hope that helps,

    Ceers,

    Colin

  • JeKayJeKay Posts: 2Questions: 1Answers: 0

    Thanks I will try this. Although the users are all from IT, so would be better if they cannot change it in the console, also for security reasons. (sometimes login data will be stored).

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    The problem is that if it's the same data in the table, only being filtered by the view, then the data will be there if you know how to get to it. The only real secure way of doing it would be to create the table unique for each user, so only the data they're permitted to see is really there.

    C

This discussion has been closed.