Hi All,
I have figured out how to do the things I need to do, I just can't do them on the same screen using the same Gallery!
When the user first lands on the page, I want them to see the gallery filtered and sorted like this (moderated=1 is important, only approved items should show in the gallery):
Sort(Filter('GalleryName', moderated = "1"),date,Descending)
Now, I want to let them search by last name. This works, kinda - it should should still be moderated="1", my search box lets you search everything - even moderated = 0:
Search('GalleryName', SearchBox.Text,"nLName")
To be even more complex, I also want them to filter by a choice column in my list (search employees by their specific directorate - 4 total). I was thinking of adding 4 buttons and each button refreshes the gallery with this code. I'm not sure how to link the button to refresh the list, I tried putting this code into the OnSelect of the button, but it didn't do anything, of course!
Filter('HCSO Kudos Employees', nDirectorate.Value = "AQD",moderated="1")
I'm open to ideas of how to make this more simple.
Thank you!!!