enum filter results

Hi everyone,

Is there a way to limit filter results for enum column in search, to show only results that satisfy a condition. It shows me everything, but list is to long, it takes time a lot to scroll.

I have a part list table, and I would like to only show me active parts in filter results. I have a column for ActiveParts, 1 for active, 0 for not active.

Thanks

@marko4522 ,
You can use filter in Valid_if field:

Select(Table[Key], [ActiveParts]=1)

Enum type should be a Ref-type to table with parts.

1 Like

@Arni_Kli

I tried that, expression is green, but it does not works

@marko4522 please try it in Suggested values field

1 Like

Still shows everything…

Check please key column name and filter column. It must works.

1 Like

Please post a screenshot demonstrating that it doesn’t work. Please also post a screenshot of the column configuration.

I have a table called “MagacinPOPIS”, column of clients called “Klijent”

Column “KNS” is 1 or 0, for active client or not.

Idea is to show in search filter only active clients

1 Like

Here is the configuration of the column

It appears you’re referring to the built-in column filtering feature:

There is no way to configure this feature directly. The best you can do is choose which columns are searchable:

Is there a way to do it somehow

I have never attempted what you’re trying to do so I can’t speak from experience. It may be possible, but it would likely be difficult to do.

1 Like

SOLUTION
This is a short concept, then you can customize it to your needs.

  1. GoogleSheets: Create Table Sparepart:

  1. GoogleSheets: Create new table SparepartQ where in cell A1 put a next QUERY:
=QUERY(Spareparts!A:C;
"select *
where C = 1
"; -1)

as a result you will receive next table with [ActiveParts]=1 only:

  1. Add tables to AppSheet, set SparepartQ as read-only, set [Part Name] as Enum for good view in system filter:

Arni_Kli_3-1727070973173.png

  1. Add Table view for SparepartQ.

  2. For SparepartQ create Action (see below) with goto link to detail view of Sparepart table:

  1. Open Table view that you made and select this action in the Behavior section^

That’s all. In result:

  1. You will receive good filtered view in system filter.
  2. The user will not even be aware that he is being redirected from the query table to the fully functional table.

RESULT SCREENS

Whole table view (Spareparts)

Query table view (SparepartsQ)

System filter view in query table view

Detail view of editable main table where you go after selecting a record in the query table

1 Like

@Arni_Kli

Brilliant!

Thank you!

1 Like

@marko4522 , :+1:

1 Like