I have 2 galleries on my app. The first gallery (gal1) functions as categories to choose. I have created a collection "colMenu" and added IDs from 1 to 6.
ClearCollect(colMenu,{ID: 1, Title:"Category1", countNumber: CountRows(colCat1)},{ID: 2, Title:"Category2", countNumber: CountRows(colCat2)},{ID: 3, Title:"Category3", countNumber: CountRows(colCat3)},{ID: 4, Title:"Category4", countNumber: CountRows(colCat5)},{ID: 5, Title:"Category5", countNumber: CountRows(colCat5)},{ID: 6, Title:"Category6", countNumber: CountRows(colCat6)})
In OnSelect, I have the below:
Switch(ThisItem.ID,1,ClearCollect(colVisible,Filter(colAll, Modified >= Today()-3)),2, ClearCollect(colVisible,Filter(colAll, 'Category2' = "1")),3,ClearCollect(colVisible,Filter(colAll, 'Category3' = "1")),4,ClearCollect(colVisible,Filter(colAll, 'Category4' = "1")),5,ClearCollect(colVisible,Filter(colAll, 'Category5' = "1")),6,ClearCollect(colVisible,Filter(colAll,ID > 0)))
It switches the Items in the second gallery (gal2) for colVisible.
Now I need to create a refresh button that clear collects the current option selected in gallery 1. I tried a couple but i cant figure it out...
Any help is appreciated.