I have a gallery in power app. I want to display details and I put Select(Parent) in OnSelect property. But it is showing only the first item details even though I choose other items. This is the first time I encountered this issue. I did the same way as other galleries but there was no issue. Please help me. Thanks.
Solved! Go to Solution.
Hi @Thura ,
Select(Parent) on a gallery component (such as your icon) simply runs whatever code is on the OnSelect of the gallery itself. What code do you have on there?
There is only Select(Parent) on a gallery component (arrow icon) as shown in above picture. It works but it shows details of the first item only even though I select other items. It keeps showing details of first item. I don't know what is the root cause of that. But there is no issue in other gallery. Only this one is showing like this.
The below code is at the Item of the gallery.
DropColumns(SortByColumns(AddColumns(Search(DataSource, TextSearchBox.Text, ColumnName),"_sortOrder",Switch(ColumnName.Value,"SCCM",1,"DRM",2,"Telius",3,4)),"_sortOrder",Ascending),"_sortOrder")
Keep up to date with current events and community announcements in the Power Apps community.
A great place where you can stay up to date with community calls and interact with the speakers.
Check out the latest Community Blog from the community!