# Button to change view table-\>grouping-\>table

**URL:** <https://connect.superhuman.com/t/button-to-change-view-table-grouping-table/16768>\
**Category:** Ask the Community\
**Created:** [June 19, 2020, 10:15am UTC](https://connect.superhuman.com/t/button-to-change-view-table-grouping-table/16768 "2020-06-19T10:15:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dezvin](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/dezvin/32/11272_2.png) [@dezvin](https://connect.superhuman.com/u/dezvin)\
**Post date:** [June 19, 2020, 10:15am UTC](https://connect.superhuman.com/t/button-to-change-view-table-grouping-table/16768/1 "2020-06-19T10:15:10Z")

</div>

Hello.  
I have a page with table.  
I want insert button in page (not table), which will change view of table to groupped and without groupped.

**How can i do this?**

p.s. I found this topic [Sort / group table with external controls](https://connect.superhuman.com/t/sort-group-table-with-external-controls/8746) by @Paul_Danyliuk, but in second action i want to ungroup table for normal (default) view. I think i may duplicate column for grouping, but i will use view of this table in another page, and because of this i dont want duplicate column

---

<div class="post-metadata">

**Author:** ![Federico\_Stefanato](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/federico_stefanato/32/10092_2.png) [@Federico\_Stefanato](https://connect.superhuman.com/u/Federico_Stefanato)\
**Post date:** [June 19, 2020, 10:37am UTC](https://connect.superhuman.com/t/button-to-change-view-table-grouping-table/16768/4 "2020-06-19T10:37:07Z")

</div>

Hi @dezvin,  
and welcome to Coda community 🤝

You actually can’t provide this kind of automatic switch. i.e. buttons can perform _actions_ on data, but not change the layout.

You can however create two separate views and use links to different views.  
Something like this:

https://coda.io/embed/Fm9fAeALJp/_suwaz?viewMode=embedplay

It’s a workaround, but maybe it accomplishes what you need.

Let me know!

---

<div class="post-metadata">

**Author:** ![dezvin](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/dezvin/32/11272_2.png) [@dezvin](https://connect.superhuman.com/u/dezvin)\
**Post date:** [June 21, 2020, 1:08pm UTC](https://connect.superhuman.com/t/button-to-change-view-table-grouping-table/16768/5 "2020-06-21T13:08:04Z")

</div>

It`s so simple! Thank you!

---

<div class="post-metadata">

**Author:** ![David\_Lawrence](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/david_lawrence/32/15978_2.png) [@David\_Lawrence](https://connect.superhuman.com/u/David_Lawrence)\
**Post date:** [July 14, 2020, 2:28am UTC](https://connect.superhuman.com/t/button-to-change-view-table-grouping-table/16768/6 "2020-07-14T02:28:08Z")

</div>

@dezvin, I had the exact same question this evening (which prompted me to search the forum and found your post). I used a similar solution, but rather than using links, I made the tables collapsing. It looks like this:  
 ![toggles](https://global.discourse-cdn.com/coda1/original/3X/7/f/7f57f914ac223b1f6e0a85d3cb08af755ecc49d3.png)
