cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Alicekings
Helper III
Helper III

Remove data in Column by Press Button

I want to create button that clear Data in Column I make gallery That have 2 Column is Flavor and Quantity and I want to make a button that went i press It delete data in that column example i click button on ID2 it Delete "vanilla" and click on ID3 it Delete "Strawberry" like picture below . I try    " Patch (MySharepointname , {ID: Value(ThisItem.ID)},{Flavor:Label13.text}); *Label13 has no text  " but it won't work any idea to do this  

 
 

image.pngimage.png

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Alicekings ,

Sorry, I misunderstood your requirements - try

UpdateIf(
   MySharepointname, 
   ID = Value(ThisItem.ID),
   {Flavor:""}
) 

I am assuming that ID = Value(ThisItem.ID) is valid from where you are running it

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

5 REPLIES 5
WarrenBelz
Super User
Super User

 @Alicekings ,

You need Remove/RemoveIf functionality.

Please have a read - if you get stuck, happy to lend a hand.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

I try that too but All my Column gone too I want only data in column "Flavor" remove    // Remove(
MyDataSource,
{ID: Value(ThisItem.ID)},Flavor);

Hi @Alicekings ,

Sorry, I misunderstood your requirements - try

UpdateIf(
   MySharepointname, 
   ID = Value(ThisItem.ID),
   {Flavor:""}
) 

I am assuming that ID = Value(ThisItem.ID) is valid from where you are running it

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Thank you that work perfectly . but may i ask what if i want to remove the column that type is person and group not a text . any suggestion to help me out

I am not completely familiar with person columns as I do not use them,however have a look the collection View> Collections. If you can see a text value, the same should work.

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (1,912)