cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jelmer_0454312
Frequent Visitor

Clear (collection) does not work for gallery

Hi everyone,

 

I have a collection called: tblAction. It is a collection which collects all the changes I make in a Gallery. For some reason my save button does not work correctly. In the onselect property I have done the following:

 

If(
CountRows(tblAction) > 0;

 

Patch(
actionlist;tblAction
);;
Notify(
"Actions Successfully Saved";
NotificationType.Success
))
;;
Clear(tblAction)

 

-------------------------------------------

The Clear(tblAction) is not working correctly. Because it is not making the collection empty. Once I perform this command without the previous steps (so patching and the notification) it works fine. 

 

Please help me out. Attached is a screenshot of the gallery. 

 

0 REPLIES 0

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,528)