Hello,
Yesterday I was working on adding sorting capability to my gallery. I got it all working, but when I clicked my Gallery nav button, PowerApps was no longer able to display my forms (see BlankForm.png). I think I know what happened. I replaced the name of my SharePoint list which is 'Tool Design Support Requests' in the Gallery Items formula with the name of the Collection I used to add columns for the sake of sorting in my Gallery Items formula. If I try switching it to the name of the SharePoint list, the formula breaks.
Gallery Items Formula:
SortByColumns(
Filter(colRequests,
StartsWith(
Title,
TxtSearchBox.Text
) && (ddStatus.Selected.Value = "Status All" || Status.Value = ddStatus.Selected.Value)
),
conSort,
If(
SortDescending,
Ascending,
Descending
)
)
App OnStart Collection:
ClearCollect(colRequests,AddColumns('Tool Design Support Requests',"StatusTxt",Status.Value,"AuthorTxt",Author.DisplayName,"PMTxt",PMPEPerson.DisplayName,"METxt",MEAssigned.DisplayName,"PCTxt",PercentComplete.Value)
The reason I added columns to the Collection was that I had a number of complex column types I wished to sort on. The data source for the forms is the Tool Design Support Requests SharePoint list and I would really like to keep it that way. I had all of the forms working before and I really like the ability to sort the gallery (see SortedGallery.png) so PLEASE tell me this is something easy to fix. I greatly appreciate you taking a look at it for me!
Teresa