
Announcements
Hi,
I'm trying to create a customized app, using the data source that I have created using a Sharepoint List. The purpose of this app is going to be to navigate through the folders within the list, e.g. use a different folder as the data source for the Gallery in every window, and once an item is selected from that Gallery list, it should navigate to the next window. In the following screen there will be another gallery, and I want the new gallery to use the selected folder from the previous screen as the new data source which doesn't seem to be working for me so far (although I can iclude a mark for every item in that folder and then use that to filter the data but that looks like a long way and not very efficient).
So far, I can navigate to the next screen by selecting an item from the "Gallery", but I couldn't manage to use the selected folder as the data source for the gallery in the new screen. Is there a way to do this?
I'm probably doing something wrong, it would be great if you could have a look at my codes here. If more information is needed, I'll share!
Here are my codes:
The "Items" section of the "Gallery" on the first screen:
SortByColumns( Filter([@'MCR Tooling for Operations'], StartsWith(Title, select_platform.Text) && isPlatform=true), "Title", If(SortDescending1, SortOrder.Descending, SortOrder.Ascending) )
The "OnSelect" section of the "Gallery" on the first screen:
Navigate(PlatformVarianceSelection, ScreenTransition.Fade, { SelectedFolder: Gallery1.Selected.Title })
Note: PlatformVarianceSelection here is the name of the next screen, and "Title" is the name of the column that contains the name of the folders.
The "OnVisible" section of the next screen:
Set(Gallery2Data, Filter('MCR Tooling for Operations', Title = SelectedFolder) )
The "Items" section of the "Gallery" on the next screen:
Items = Gallery2Data
and this is the error I get from this section:
"Incompatible types for comparison. These types can't be compared."
Regards,
Ege