# Select all on Smart Segment selects only the current page

**URL:** <https://community.forestadmin.com/t/select-all-on-smart-segment-selects-only-the-current-page/1730>\
**Category:** Help me!\
**Created:** [January 29, 2021, 5:21pm UTC](https://community.forestadmin.com/t/select-all-on-smart-segment-selects-only-the-current-page/1730 "2021-01-29T17:21:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![remi\_okarito](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/remi_okarito/32/778_2.png) [@remi\_okarito](https://community.forestadmin.com/u/remi_okarito)\
**Post date:** [January 29, 2021, 5:21pm UTC](https://community.forestadmin.com/t/select-all-on-smart-segment-selects-only-the-current-page/1730/1 "2021-01-29T17:21:57Z")

</div>

## Expected behavior

When clicking on ‘Select all’, I expect to select all elements in my smart segment

## Actual behavior

Il only selects the records in the current view.

Do you have a workaround ? I’d rather not show all records in a single view.

---

<div class="post-metadata">

**Author:** ![anon79585656](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@anon79585656](https://community.forestadmin.com/u/anon79585656)\
**Post date:** [February 1, 2021, 11:17am UTC](https://community.forestadmin.com/t/select-all-on-smart-segment-selects-only-the-current-page/1730/2 "2021-02-01T11:17:05Z")

</div>

Hello @remi_okarito ,

Thank you for your feedback.

To properly use the “select all” feature, you might need to update your code.  
Please see here how to:  
[https://docs.forestadmin.com/documentation/how-tos/maintain/upgrade-notes-sql-mongodb/upgrade-to-v6#select-all-feature](https://docs.forestadmin.com/documentation/how-tos/maintain/upgrade-notes-sql-mongodb/upgrade-to-v6#select-all-feature)

The `RecordsGetter` helper should come in handy.

---

<div class="post-metadata">

**Author:** ![remi\_okarito](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/remi_okarito/32/778_2.png) [@remi\_okarito](https://community.forestadmin.com/u/remi_okarito)\
**Post date:** [February 1, 2021, 11:42am UTC](https://community.forestadmin.com/t/select-all-on-smart-segment-selects-only-the-current-page/1730/3 "2021-02-01T11:42:52Z")

</div>

Thanks I’ll definitely have a look!
