Hello guys,
I have a dropdown menu connected to a custom collection that I use to filter my SP list.
When use it to filter, then select an item, I then navigate to its form.
When I click on my previous icon, to go back to my gallery, the value of my dropdown resets to default (which is a custom value called All).
How can I keep the value I set?
This is the code of my "OnVisible" property of my gallery screen:
ClearCollect(
colDropdownOptions,
{Result: "All"}
);
Collect(
colDropdownOptions,
Distinct(
'Stock Management',
Description
)
);
This is the code of my "Item" property of my dropdown:
Sort(colDropdownOptions,Result,Ascending)
And this is the code of my gallery:
Sort(
AddColumns(
Filter(
'Stock Management',
Or(StartsWith(
Model,
TxtIn_AllProductsSearchBox.Text
), StartsWith(Title, TxtIn_AllProductsSearchBox.Text)) &&
(
Description = DpDwn_AllProducts.Selected.Result ||
DpDwn_AllProducts.Selected.Result = "All"
) &&
(
Status = "High" ||
Status = "Low" ||
Status = "Average" ||
Status = "Out"
)
),
"SortRank",
(Stock/Threshold)
),
SortRank,
If(
SortDescending1,
Descending,
Ascending
)
)
This is the code of the previous button to go back to my gallery after selecting an item is just a back() function.
Thank you so much!
Anthony