25
Views
6
Comments
Select all on table without maxrecords
Question

I want to have a dropdown with checkboxes in a table. I also need the select all button to select all of the checkboxes. The problem is, for example, if I have 150 products in the table, when I clicked select all, the amount of selected product is only 10, since the maximum record of the table is 10. And I can't just remove the Max Records since I need it for pagination.


How can I solve this problem?

Thank you

-Hannah

2025-12-29 06-17-15
Deepak Raj M

Hi, you can use scroll bar in table for this, without pagination this is my opinion

UserImage.jpg
Ram Jira

Hello, can you give me documentation about scrollable table? Thank you 

2025-12-29 06-17-15
Deepak Raj M

use this widget and you have scroll in your table for more details refere this link https://success.outsystems.com/documentation/11/building_apps/user_interface/patterns/using_mobile_and_reactive_patterns/interaction/scrollable_area/

2025-12-22 13-50-43
Sherif El-Habibi
Champion

Hello @Ram Jira,

Like Deepak mentioned, you can use a scrollable table as an option; however, this approach removes pagination since you’d be retrieving all records at once.


Another approach is to add an additional attribute to your data model for example, IsSelected. When the user clicks the “Select All” button, you can update this attribute for all records. If the user clicks the “Select All” button again, you can revert the selections by resetting this attribute. You can also include logic to reset all selections when the user navigates to another page.


While this might not be the most performance-efficient solution, it can still effectively meet your requirement.


2024-08-28 10-01-54
Kiran Shinde

Hello @Ram Jira

You can achieve this functionality by maintaining the local variable to hold selected records id list.

1. Define a Local Variable

  • Create a local variable named SelectedIds of type List of Identifier.
  • This will store the IDs of the records selected by the user.

2. Handle "Select All" Functionality

  • When the user clicks Select All:
    • Assign SelectedIds with all record IDs from the table’s data source without pagination.
  • When the user unchecks Select All:
    • Clear the SelectedIds list.

3. Update Selection on Individual Row Changes

  • On each row selection or deselection:
    • Add or remove the corresponding record ID from SelectedIds.
    • Ensure this logic is triggered via the checkbox or selection widget’s event.

4. Sync Selection State After Data Fetch

  • After the aggregate fetch (e.g., in the screen preparation or data refresh logic):
    • Loop through the fetched records.
    • Set each record’s IsSelected property to True if its ID exists in SelectedIds, otherwise set it to False.

5. Display Selection Overview

  • Show the count of selected records using Length(SelectedIds) in the UI.
  • This gives users visibility into how many records are currently selected.

6. Add "Clear Selection" Button

  • Provide a Clear Selection button in the UI.
  • On click, set SelectedIds to an empty list.
  • Refresh the table view to reflect the deselection of all records.
2025-12-03 17-22-41
Lavanya Kamalaguru

Hi @Ram Jira

For select all, you are selecting the values that is fetched on the current page. But you need to select all the records in all pages. And also, if we navigate between pages the selected records will disappear.

I have implemented the select all functionality along with Export option. Please check the below oml file and let me know for any queries.


SelectAll.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.