Hi @RandyHayes
Okay, I did what you mentioned above: Created a new called galleryForButtons
The Items property of your Gallery would be: ["Assign to me", "Unassigned", "All"]
You would have a button in the gallery and set the Text property to: ThisItem.Value
THEN, the Color property of your Button would be: If(ThisItem.IsSelected, White, Black)
And your Fill property would be: If(ThisItem.IsSelected, Blue, LightGray)
--------------------------
So, now when I click on the 'All' button able to pull in everything. Yay but the other buttons it shows nothing in the gallery.
On the main gallery - Items, I had the following that worked between the 3 buttons.
Search( Filter(ccDataCollection,( varAll || StatusVAl in AssignedTo) && CycleDate >= DatePickerStart.SelectedDate , CycleDate<=DatePickerEnd.SelectedDate), txtSearchBox.Text, "Code", "Batch", "OwnerName", "LBox", "PayorName","Contract_No", "AssignedTo")
'All' button: OnSelect: UpdateContext({varAll: true})
'Assigned to me': OnSelect: UpdateContext({StatusVAl: varUser.displayName}); UpdateContext({varAll: false})
'Unassigned': OnSelect: UpdateContext({StatusVAl: Blank()}); UpdateContext({varAll: false})
-----------------------
So, I tried this but like I said "All" is working but the other 2 buttons it shows 0 records in the gallery now.
Search( Filter(ccDataCollection, galleryForButtons.Selected.Value = "All" || (galleryForButtons.Selected.Value = "Assigned to me" && StatusVAl in AssignedTo) , CycleDate >= DatePickerStart.SelectedDate , CycleDate<=DatePickerEnd.SelectedDate), txtSearchBox.Text, "Code", "Batch", "OwnerName", "LockBox", "PayorName","Contract_No", "AssignedTo")
What am I missing here? Thank you