Ask AI
Skip to main content

Clear rows of datatable

Function: Clear rows of datatable

This action allows you to quickly remove all data entries from a specific data table component on your application's screen. It's useful for resetting a table or preparing it for new data without deleting the table component itself.

Input,

  • Datatable: The visual data table component on your application screen from which you want to remove all rows. This input is required.

Output,

This action does not produce any direct output. It modifies the selected Datatable component by clearing its rows.

Execution Flow,

Real-Life Examples,

  • Example 1: Resetting a Shopping Cart Display

    • Inputs:
      • Datatable: ShoppingCartItemsTable (a datatable displaying items in a user's shopping cart)
    • Result: All items are removed from the ShoppingCartItemsTable display, effectively emptying the visual shopping cart after a purchase is completed or the user clicks a "Clear Cart" button.
  • Example 2: Preparing a Data Entry Form

    • Inputs:
      • Datatable: NewOrderLinesTable (a datatable where users add individual product lines for a new order)
    • Result: All previously entered product lines are cleared from the NewOrderLinesTable, making it ready for a user to start entering a new order from scratch.
  • Example 3: Clearing Search Results

    • Inputs:
      • Datatable: SearchResultsTable (a datatable displaying results from a search query)
    • Result: All previous search results are removed from the SearchResultsTable when a user initiates a new search or clicks a "Clear Search" button, ensuring the table is empty before new results are loaded.