Greetings.
I have a requirement to filter my gallery in multiple scenarios. Please find the below requirement.
- Filter Gallery by TextInput Text
- Filter Gallery by From and To Dates
- Filter Gallery by the current user (only when a button is clicked)
- Filter Gallery by Status ( Approved, Rejected, Pending)[ Only when Approved or Rejected or Pending button is clicked]
Currently, I have completed the first and second requirements. I would be needing help with the remaining requirements.
I am looking to extend the below code to meet all the requirements.
Sort(
Filter(
MCRRequest,
Or(
(TextInput1_1.Text in Title),
(TextInput1_1.Text in 'Unique Code'),
(TextInput1_1.Text in 'Part Number'),
(TextInput1_1.Text in 'Created By'.DisplayName))
&&
If(Value(DatePicker1_2.SelectedDate)=0,true,
Created >= DatePicker1_2.SelectedDate && Created <= DatePicker1_3.SelectedDate)),
Created,
Descending
)