cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Belasor
Helper III
Helper III

Can´t open grouped gallery item

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".

2019_08_02_16_33_11_Camelot_Recruiting_Saved_Unpublished_PowerApps.png

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)"Test.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
RezaDorrani
Dual Super User II
Dual Super User II

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

 

v-xida-msft
Community Support
Community Support

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:

https://powerusers.microsoft.com/t5/Creating-Apps/display-the-SharePoint-list-data-in-Group-Format-u...

 

More details about the nested Gallery in PowerApps, please check the following video:

https://www.youtube.com/watch?v=ZzQ1t2sQvj8

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Perfect thank you very much @v-xida-msft that was the solution I´ve searched for 🙂

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (88,167)