# Query on tabs collection

**URL:** <https://community.weweb.io/t/query-on-tabs-collection/5347>\
**Category:** Ask us anything\
**Created:** [November 11, 2023, 8:43am UTC](https://community.weweb.io/t/query-on-tabs-collection/5347 "2023-11-11T08:43:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![erikm3103](https://avatars.discourse-cdn.com/v4/letter/e/c37758/32.png) [@erikm3103](https://community.weweb.io/u/erikm3103)\
**Post date:** [November 11, 2023, 8:43am UTC](https://community.weweb.io/t/query-on-tabs-collection/5347/1 "2023-11-11T08:43:17Z")

</div>

Happ Saturday everyone!

Quick questions since I’ve been stuck on this for quite some time now.

I’m using this Tabs element, and I basically have 1 collection “All Users”. The tabs is divided depending on the **status** of the user.

Now, I want to make sure that my url is `selectedTab=active` using `query` variable. The reason is that I want the user to see this, and I also want to use the **status** of the user to refetch the collection with this as a filter. Its a paginated collection.

I think I have most pieces in place, but I just dont know how to progress with the query. Should I use a workflow on each tab to accomplish this, what would be the steps?

 ![Screenshot 2023-11-11 at 09.38.52](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/c/c043da6f97bb9790b7b39e2529679168c6a6d052.png)

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [November 11, 2023, 10:59am UTC](https://community.weweb.io/t/query-on-tabs-collection/5347/2 "2023-11-11T10:59:38Z")

</div>

What backend? I think you want to change a variable on Tab click, and then concatenate that to your Xano request, or filter your supabase collection based on that.

---

<div class="post-metadata">

**Author:** ![erikm3103](https://avatars.discourse-cdn.com/v4/letter/e/c37758/32.png) [@erikm3103](https://community.weweb.io/u/erikm3103)\
**Post date:** [November 11, 2023, 3:05pm UTC](https://community.weweb.io/t/query-on-tabs-collection/5347/3 "2023-11-11T15:05:22Z")

</div>

Xano backend.
