Hello. I have a problem of the following nature.
I need to click on the menu item to go to the submenu without leaving the current screen. Data obtained from Sharepoint.
In Gallery at Items worth the value:
Filter(Objects;'Parent'="0")
Solved! Go to Solution.
Hi @Anonymous ,
Could you please share a bit more about your scenario?
Do you want to display your Main menu and Submenu within a same Gallery control?
If you want to display your Main menu and Submenu within a same Gallery control, please take a try with the following workaround:
Set the OnSelect property of the Gallery to following:
Set(MenuItemSelected, true);
Set(MenuItemID, ThisItem.ID)
Set the OnSelect property of the "Navigate Back" icon button to following:
Set(MenuItemSelected, false)
Set the Items property of the Gallery to following:
If( MenuItemSelected = false, Filter(Objects, 'Parent' = "0"),
MenuItemSelected = true,
Filter(Objects, 'Parent'= Text(MenuItemID)) )
Note: I assume that the 'Parent' column is a Single line of text type column in your SP list.
In addition, you could also consider take a try to create a Tablet layout canvas app on your side, then add two Gallery controls within your current screen.
Set the Items property of the Gallery1 to following:
Filter(Objects, 'Parent' = "0")
Set the Items property of the Gallery2 to following:
Filter(Objects, 'Parent' = Text(Gallery1.Selected.ID))
More details about creating a tablet layout canvas app, please check the following article:
https://www.youtube.com/watch?v=qwUt7MagAt4
Best regards,
Hi @Anonymous ,
Could you please share a bit more about your scenario?
Do you want to display your Main menu and Submenu within a same Gallery control?
If you want to display your Main menu and Submenu within a same Gallery control, please take a try with the following workaround:
Set the OnSelect property of the Gallery to following:
Set(MenuItemSelected, true);
Set(MenuItemID, ThisItem.ID)
Set the OnSelect property of the "Navigate Back" icon button to following:
Set(MenuItemSelected, false)
Set the Items property of the Gallery to following:
If( MenuItemSelected = false, Filter(Objects, 'Parent' = "0"),
MenuItemSelected = true,
Filter(Objects, 'Parent'= Text(MenuItemID)) )
Note: I assume that the 'Parent' column is a Single line of text type column in your SP list.
In addition, you could also consider take a try to create a Tablet layout canvas app on your side, then add two Gallery controls within your current screen.
Set the Items property of the Gallery1 to following:
Filter(Objects, 'Parent' = "0")
Set the Items property of the Gallery2 to following:
Filter(Objects, 'Parent' = Text(Gallery1.Selected.ID))
More details about creating a tablet layout canvas app, please check the following article:
https://www.youtube.com/watch?v=qwUt7MagAt4
Best regards,
Thank's. Everything works, but not as I would like.
Set the OnSelect property of the Gallery to following:
Set(MenuItemSelected, true);
Set(MenuItemID, ThisItem.ID)
Set the OnSelect property of the "Navigate Back" icon button to following:
Set(MenuItemSelected, false)
Set the Items property of the Gallery to following:
If( MenuItemSelected = false, Filter(Objects, 'Parent' = "0"),
MenuItemSelected = true,
Filter(Objects, 'Parent'= Text(MenuItemID)) )
Note: I assume that the 'Parent' column is a Single line of text type column in your SP list.
This solution is suitable for me, but I need to save the path when I click on the last attachment and send it to the next screen. Also, when you go to the last attachment, a blank screen opens, and you only need to select the last item with a fill.
Best regards,
Andrej Kopp
User | Count |
---|---|
205 | |
94 | |
87 | |
47 | |
43 |
User | Count |
---|---|
252 | |
104 | |
103 | |
62 | |
57 |