Still pretty new to this. I am trying to create a simple inventory application for my IT department. I created a Sharepoint List with details about the many devices in our inventory, then used this datasource to create a canvas app.
I have an "Inventory" screen with a gallery that displays all of the devices from my SP List along with other details like serial number, model, status, etc. On this inventory screen I have added a search bar that functions as expected.
However, I want to add three dropdown filters to this screen as well to filter Equipment Type, Status, and Assigned To. So far, I have this code:
SortByColumns(
Filter(
[@Inventory],
StartsWith('Asset Tag', TextSearchBox1.Text) ||
StartsWith(Status, TextSearchBox1.Text) ||
StartsWith('Assigned To', TextSearchBox1.Text) ||
StartsWith(Contact, TextSearchBox1.Text) ||
StartsWith(Title, TextSearchBox1.Text) ||
StartsWith('Serial Number', TextSearchBox1.Text) &&
(Dropdown1.Selected.Result = "" || Dropdown1.Selected.Result = 'Equipment Type')
),
"Title", If(SortDescending1, Descending, Ascending)
)
I don't receive any errors, however when I select an option from one of the dropdown menus, nothing happens and my gallery remains the same. Any ideas as to why my dropdown aren't filtering the data from my gallery?
Please let me know if additional details are needed, any assistance is very much appreciated.