I am unsure how to explain this. I have 3 filter dropdowns filtering on a gallery. When the app starts I want the dropdowns to default to "ALL". I am populating the dropdowns with collections:
The onvisible for the main screen is:
ClearCollect(
colProjects,
AddColumns('Project and Status',"ProjectTypeText",Project_x0020_Type.Value,
"ProjectMgrText", Project_x0020_Manager.DisplayName));
ClearCollect(
colProjectType,
Distinct(colProjects,ProjectTypeText));
Collect(colProjectType,{Result:"All"});
ClearCollect(
colProjectMgr,
Distinct(colProjects,ProjectMgrText));
Collect(colProjectMgr,{Result:"All"});
ClearCollect(
colCustomer,
Distinct(colProjects,Customer_x0020_ID));
Collect(colCustomer,{Result:"All"});
ClearCollect(
colFilterProjects,colProjects);
Set(varAll,"All")
I have the Onchange of each dropdown:
ClearCollect(
colFilterProjects,
Filter(colProjects,
Customer_x0020_ID = drpCustomer.Selected.Result ||drpCustomer.Selected.Result = "All",
ProjectMgrText = drpProjectMgr.Selected.Result ||drpProjectMgr.Selected.Result = "All",
ProjectTypeText = DrpProjectType.Selected.Result ||DrpProjectType.Selected.Result = "All"
))
I also have the "default" = varAll and the "Items" =
Customer = Sort(colCustomer,Result)
Project Type = Sort(colProjectType,Result)
Project Lead = Sort(colProjectMgr,Result)
When i start the App, the default is never "All" and when i navigate back to the main page after setting them all to "All" it always defaults to the first selection not "All"
I have tried using the same script used on the on visible, in the on start. I have tried just putting the Set(varAll,"All") on navigations from other screens to the main. I am not coming up with anymore ideas. Have been trying all sorts of things.
Any help would be appreciated.