Hello Guys,
I´ve created a PowerApp with a gallery. All datas in the list a retrived from a SharePoint list.
In the gallery I grouped all items with "GroupBy".
now after that I retrieved every Value from the list I want to click on the arrow to access all the items which are under the grouped value. When I click on the arrow nothing happens. How can I fix that problem?
Additional Infos:
OnSelect is on: "Select(Parent)"
Solved! Go to Solution.
Hi @Belasor ,
Do you want to display all the items selected by the grouped value from the list before within your next screen (another screen) using Gallery?
If you want to display all the items selected by the grouped value from the list before within your next screen, please take a try with the following workaround:
Set the Items property of the Gallery2 to following:
Filter('List', ItemName = Gallery1.Selected.ItemName)
Note: I assume that the 'ItemName' column is a Text type column in your SP List.
Please take a try with above solution, check if the issue is solved.
Best regards,
Hi @Belasor
On Select property of the arrow you would have to navigate user to a different screen and show the information you want relative to the selected item
Gallery will not automatically show the subset of data for you
Regards,
Reza Dorrani
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Belasor ,
Do you want to display the all items under a specific Group value within same Gallery when you click ">" icon?
Which column do you use as the Group by column in your GroupBy function?
Based on the needs that you mentioned, I think the nested Gallery could achieve your needs. You could consider add another Gallery control (Gallery2) as Sub-Gallery within your currently Gallery, then set the Items property of the Gallery2 (Sub-Gallery) to following:
Filtre('YourSPList', GroupByColumn = ThisItem.GroupByColumn)
Note: The GroupByColumn represents the Grouped By column you used in your GroupBy formula within your Outer Gallery.
After that, you could see the Group value and the corresponding items under the specific group value within the nested Gallery, without clicking the ">" icon.
Please also check and see if my response mentioned within the following thread would help in your scenario:
More details about the nested Gallery in PowerApps, please check the following video:
https://www.youtube.com/watch?v=ZzQ1t2sQvj8
Best regards,
Thank you very much @v-xida-msft for the detailed answer, however I would like to open all items underneath the groupby value. So to forward to the second screen. In this case I just need to create a gallery with filter based on the selected value right?
So in Gallery1 I have this code
GroupBy('List',"ItemName","Name")
For the onselect > button I just added this line to move to the next screen.
Navigate(user,ScreenTransition.Fade)
What do I need in Gallery2 when I just want to show all the items selected by the grouped value from the list before?
It should be something like this, but I´m not sure about the logical_test.
Filter('List',
Thanks in advance
Hi @Belasor ,
Do you want to display all the items selected by the grouped value from the list before within your next screen (another screen) using Gallery?
If you want to display all the items selected by the grouped value from the list before within your next screen, please take a try with the following workaround:
Set the Items property of the Gallery2 to following:
Filter('List', ItemName = Gallery1.Selected.ItemName)
Note: I assume that the 'ItemName' column is a Text type column in your SP List.
Please take a try with above solution, check if the issue is solved.
Best regards,
Perfect thank you very much @v-xida-msft that was the solution I´ve searched for 🙂
User | Count |
---|---|
221 | |
99 | |
95 | |
55 | |
36 |
User | Count |
---|---|
272 | |
105 | |
104 | |
60 | |
60 |