I am developing an app that will allow a user to search for a project in a Gallery using a text input box and to also filter by active projects using a checkbox. The data is stored in a sql database.
My filter code is not working a expected and I need some help combining the search and filter. The following filter code works when the checkbox is true. when the checkbox is false (unchecked) it returns nothing. The "Active" database field is a bit data type.
If(IsEmpty(Checkbox3.Value), '[dbo].[Project_Information]', Filter('[dbo].[Project_Information]', Checkbox3.Value, Active))
I would like to combine the filter code with the the following search code. Not sure how to do this.
If(IsBlank(TextInput2.Text), '[dbo].[Project_Information]', Search('[dbo].[Project_Information]', TextInput2.Text, "Project_Name", "Project_Number"))
Thanks in advance for any suggestions.