Hello,
I am creating a work order app with an item grid displaying every item available to order. Within the grid are 3 text input boxes (quantity, price, ounce size) and a button to clear the fields. There is a search bar above the gallery that filters the gallery by stock number or description.
Here is my gallery's items code:
SortByColumns(
Filter(Order, ItemSearch.Text in Description || ItemSearch.Text in Text(Title)), "Title")
I'm having 2 problems with this setup that I'm hoping someone can help me with.
1. I have the clear fields button set to only be visible if the quantity text box is not blank. I have this in my "Visible" property:
If(!IsBlank(Quantity), true, false)
This works perfectly fine when I first open the app. But when I type anything into the search bar the button appears on every item. I also have a TemplateFill property of the gallery with If(!IsBlank(Quantity), LightGreen, Transparent), and that is also behaving in the same way as the button.
2. This one is the much bigger problem. If I have entered vales into any input box, and then use the search to find a new item, the fields that I entered previously are cleared out.
Any thoughts?
UPDATE:
I also tried changing the Items property of the gallery to use a search function instead of filter, I started with just searching by description to test it:
Search(Order, ItemSearch.Text, "Description")
This is behaving the exact same way as before.