canvasfilterdatatablespowerappsis-empty

Power Apps Data Table Empty


I have data table control and it will retrieve the data from my collection. Till now it's fine. Now I want to make the data table empty without using any other controls like a button, or trash icon. Is there any possibility of using the direct function to make the data table empty?enter image description here


Solution

  • As an example with using a variable. Have a button with:

    OnSelect = UpdateContext({ showTable: !showTable })
    

    Then update the data table with:

    Items = If (showTable, colEmployeeRegistration )