Hello,
I've been trying to filter my gallery by logged in user and status with no success so I am hoping you can help me. I have the SortByColumns, Dropdown, and Search formulas working. After we figure out the Filter portion, I was wondering if you could help me with the proper syntax to get all 3 components knitted together. I've attached screenshots of my test app OnStart variables, and the filter formula that I tried as well as pasting the formulas below. Please let me know if I have left out any key pieces of information necessary to troubleshoot this. I also need to provide an option to view the gallery in its entirety for the sake of people working the requests and managers who need a broader view. The logged in user default option should be just that. What do you recommend?
OnStart Formula
I verified that the Collections were set. Please let me know if the syntax below doesn't look right. I tried creating a "regular" Collection before introducing the Table syntax, but I can't get anything to show in the Gallery either way.
Concurrent(Set(varUser,User()),ClearCollect(colRequests,'Tool Design Support Requests'),ClearCollect(colStatus,Table({ReqStatus:"Display All"},{ReqStatus:"Open"},{ReqStatus:"Waiting on Info"},{ReqStatus:"In Design"},{ReqStatus:"Approval Pending"},{ReqStatus:"In Model Shop"},{ReqStatus:"Completed"},{ReqStatus:"On Hold"},{ReqStatus:"Cancelled"})))
Filter formula
This formula doesn't work at all. Zero results appear in the gallery. Am I even close?
If(ddStatus.Selected.Result="Display All",Filter(colRequests,'Creator Email'=varUser.Email),Filter(colRequests,'Creator Email'=varUser.Email && ReqStatus=ddStatus.Selected.Result))
The following formulas are working as expected:
Status dropdown Items formula:
Sort(Distinct(colStatus,ReqStatus),Result)
Default property is set to "Display All"
Search formula:
Filter(colRequests,StartsWith('Request Summary Title',TxtSearchBox.Text))
SortByColumns formula:
SortByColumns(colRequests,"Title")
I've spent so many hours on this it is time to ask for help. I would greatly appreciate your kind assistance.
Thanks! Teresa