My app contains a list of products carried by a chain of retail stores. I want the manager of each store to be able to select their store number on the home page and then see the gallery list of only the products in their store.
On Screen1 I have dropdown1, which lists the store numbers and then there is Button1 which should be pressed to navigate to BrowseGallery1, filtered by the store number selected in the dropdown.
My data source is a CDS called Products. There is a text field called StoreNum which has the store numbers, such as "111", "115", etc.
I tried putting the following in the OnSelect of Button1:
Navigate(BrowseScreen1,ScreenTransition.Fade,{StoreNum:
Dropdown1.Selected.Value}), but that didn't work. It navigates to the
page, but doesn't filter by StoreNum.
After I figure out the filter situation, I want the search box on BrowseScreen1 to search a few fields in the gallery, but only for that particular store. I currently have this in the "Items" section of BrowseGallery1:
Sort(If(IsBlank(TextSearchBox1.Text), Products, Filter(Products, TextSearchBox1.Text in Text(ItemNameWeight))), ItemNameWeight, Ascending)
That seems to search my ItemNameWeight field ok, but with no regard to store number.
I'd appreciate some help!
Thanks, Tony