web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Gallery OnSelect event...
Power Apps
Answered

Gallery OnSelect event only triggers sporadically

(0) ShareShare
ReportReport
Posted on by 11

I have 3 gallery objects, each of which represents a level of several SharePoint lists depending on the selected entry. The Items of the first gallery (labeldruckAuftragGallery) is set by

 

 

GroupBy(
 AddColumns(
 IECC_TypenschildAuftragsliste;
 _etikettNumber;
 Typenschildnummer
 );
 cr4a2_auftragsnummer;
 Etiketten
)

 

 

 

the second gallery-Items are

 

 

AddColumns(
 GroupBy(
 AddColumns(
 Filter(
 IECC_TypenschildAuftragsliste;
 Auftragsnummer = labeldruckAuftragGallery.Selected.cr4a2_auftragsnummer
 );
 _etikettNumber;
 Typenschildnummer.LINS_Typenschild;
 _isSingleSelected;
 true
 );
 _etikettNumber;
 resultTable
 );
 _groupIsSelected;
 true
)

 

 

The third gallery shows the resultTable-Data.

This pretty solution works, but i have no solution to handle the checkboxes.

However, the second and third galleries have checkboxes to select entities for future. see above. If I replace the Items property of the second/third gallery with a collection that is created in the OnSelect event of the first gallery, the galleries are no longer displayed with the correct values ​​or are not displayed dependably.
As an example, i create the following collection in the OnSelect-Event and set it to the Items-Property of the second gallery.

 

 

 

ClearCollect(
 FilteredOrderLabels;
 AddColumns(
 labeldruckAuftragGallery.Selected.Etiketten;
 _etikettNumber2;
 Typenschildnummer.LINS_Typenschild;
 _isSingleSelected;
 true;
 _groupSelected;
 true
 )
)

 

 

 

I prefer the second solution, for updating and handling the checkboxes, but why isn't it working properly?

 

Thanks in advance for your help

Categories:
  • Zetti78 Profile Picture
    11 on at

    to visualize the problem, here two screenshots:


    with data as result of AddColumnswith data as result of AddColumns

    by select AddColumns the correct Data are visible

     

     

    without data in collectonwithout data in collectonby clicking in Collection at the same time, the collection is empty

  • Verified answer
    Zetti78 Profile Picture
    11 on at

    I have the solution.

    After I replaced the first gallery with a new one, the problem no longer occurs. I suspect that the generated JSON of the old Gallery has an error that is simply no longer present in the new component, since I did not copy the Gallery but recreated it. Maybe compare the two JSON elements with each other.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard