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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Resetting Gallery

(0) ShareShare
ReportReport
Posted on by 221

Hello All,

 

I'm receiving the follow error below, when attempting to reset the gallery upon clicking the Submit button.

 

Would anyone be able to lend a hand and let me know what needs to be done?

 

Shaguar357_1-1695069770902.png

 

Shaguar357_0-1695069687096.png

 

Shaguar357_2-1695069936959.png

Shaguar357_3-1695069982933.png

 

 

Categories:
I have the same question (0)
  • SpongYe Profile Picture
    5,609 Super User 2025 Season 2 on at

    Hi @Shaguar357 

     

    Based on your screenshots provided I see in the code you're resetting the Barcode control. 

    You should change the code to:

     

    Reset(Gallery5)

     

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • Shaguar357 Profile Picture
    221 on at

    Hi @SpongYe 

     

    Thank you for pointing that out.  I did change the Reset(Gallery5).  That took the error message away, however, the gallery is still not resetting.  

     

    Any other ideas?

  • SpongYe Profile Picture
    5,609 Super User 2025 Season 2 on at

    Why you want to reset the gallery? Or do you mean the items in the gallery?

  • Shaguar357 Profile Picture
    221 on at

    Hi @SpongYe 

     

    Yes.  I meant the items in the gallery.   Any idea how to reset the items after submitting?


    Thanks!

  • Sanshubhs Profile Picture
    98 on at

    Then Clear the Collection colScannedItems

    Clear(colScannedItems);
  • Shaguar357 Profile Picture
    221 on at

    Hey @Sanshubhs 

     

    I added that and it still didn't clear the items out:

     

    Shaguar357_0-1695128857534.png

     

    Is that the correct placement?  


    Thanks!

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard