Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Resetting Gallery

Posted on by 211

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

 

 

  • Shaguar357 Profile Picture
    Shaguar357 211 on at
    Re: Resetting Gallery

    Hey @Sanshubhs 

     

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

     

    Shaguar357_0-1695128857534.png

     

    Is that the correct placement?  


    Thanks!

     

  • Sanshubhs Profile Picture
    Sanshubhs 98 on at
    Re: Resetting Gallery

    Then Clear the Collection colScannedItems

    Clear(colScannedItems);
  • Shaguar357 Profile Picture
    Shaguar357 211 on at
    Re: Resetting Gallery

    Hi @SpongYe 

     

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


    Thanks!

  • SpongYe Profile Picture
    SpongYe 5,334 on at
    Re: Resetting Gallery

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

  • Shaguar357 Profile Picture
    Shaguar357 211 on at
    Re: Resetting Gallery

    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
    SpongYe 5,334 on at
    Re: Resetting Gallery

    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! 🍻

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,591

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,090

Leaderboard