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

Refresh Datatables

(0) ShareShare
ReportReport
Posted on by 143

Hi,

 

I have a screen where I have 2 buttons which set the value of a variable (filterValue) to a text string. I also have a dat table which filters the data source based on the filterValue but it does not seem to update when I click on the either button.

 

Is there a way to refersh the data table on the click of the button.

 

Dhiran

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    If the DataTable is connected to a SP list you can Always perform a Refresh(SpListName) on a Behavior formula like OnSelect of a button

  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @Dhiran,

    Could you please share more details about the Items proeprty of the Data Table control?

    I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:12.JPG

     

    13.JPG

    Set the OnSelect property of the "Available" button to following:

    Set(filterValue, "Site Services - Available")

    Set the OnSelect property of the "Lost/Stolen" button to following:

    Set(filterValue, "Lost/Stolen")

    Set the Items property of the Data Table control to following:

    Filter('20181204_case5', 'Location/Status'.Value = filterValue) /* <-- 20181204_case5 represents my SP list data source*/

    The GIF screeshot as below:Test1.gif

    Please check if you have set proper value for the filterValue variable. Also please check if you have typed proper filter condition within your filter formula.

    In addition, you could also consider take a try with the following workaround:

    Set the OnSelect property of your first button to following:

    ClearCollect(
    FilteredResult,
    Filter('YourDataSource', ColumnName="TextString1")
    )

    Set the OnSelect proeprty of your second button to following:

    ClearCollect(
     FilteredResult, 
     Filter('YourDataSource', ColumnName="TextString2")
    )

    Set the Items property of the Data Table control to following:

    FilteredResult

    Best regards,

    Kris

     

     

  • Dhiran Profile Picture
    143 on at

    Thank you for the detailed response. I believe you can only get the refresh to work after you add the Clearcollect statement to the buttons?

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard