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 / How to build everyday ...
Power Apps
Answered

How to build everyday List

(0) ShareShare
ReportReport
Posted on by 6

Hi, there,

I want to make a reusable list, the data source is excel, every time I click on one of the items the item will automatically disappear, when I click on all the items the list will be empty. When I click on the reset button all the items will appear again. But I don't know how to implement it, because the only function I found is remove function, which will make the data be deleted, what I want is the data to be hidden automatically, is there any way to do it?

thanks a lot

Categories:
  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    With the caveat that Excel is not the greatest data source -

    You could add a column for a Boolean value (ShowMe), then you can filter your gallery on that column - if it is true then show the row. ( Filter(ExcelSheet, ShowMe). In your Gallery have a Toggle with the OnCheck property set to Patch "ShowMe" to false. Then your reset button would be an UpdateIf function that would change them all to true.

    UpdateIf(ExcelSheet, true, {ShowMe:true})

  • YaowenL Profile Picture
    6 on at

    Thanks l lot! I created a new list in the excel sheet as “showme”, set the values to 1, then added a trash next to each item in power apps, and used the Filter function to filter the items with a showme value of "1". onselect of trash is "ThisItem.showme="0"“, and the reset button is set to Updateif (.........). However, the function set in the trash can does not seem to work and the item is not filtered out when I click on it. Is there a solution?

  • Verified answer
    BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    In the OnSelect you are not actually changing the value in the list. The OnSelect needs to be something like:

    Patch(ExcelSheet,ThisItem,{showme:0})

    Also - you may run into an issue where you can click on items faster than the system can respond. If you want to help your users make the OnSelect:

    //Start animation to keep user from hitting arrow twice
    Set(var_Wait, true);
    Select(Parent);
    //mark item completed so it no longer shows in items to be completed

    Patch(ExcelSheet,ThisItem,{showme:0})

    Set(var_Wait,false)

    Then you need to create a Rectangle (in the Icon list) that covers the whole screen. Set the fill color to something like RGBA(150,150,150,.6) so it will be partially see-through. Then set its OnVisible to var_Wait. Then it will cover up the screen to keep users form clicking again until the change is recorded. In place of the Rectangle you could use a Label, put something like "Please Wait" in the Text attribute and set it to center Horz and Vert. Then set the fill as above.

  • YaowenL Profile Picture
    6 on at

    Thanks a lot! solved

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 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard