# Update/Fetch only one item of a collection list

**URL:** <https://community.weweb.io/t/update-fetch-only-one-item-of-a-collection-list/9125>\
**Category:** How do I?\
**Created:** [June 14, 2024, 3:26pm UTC](https://community.weweb.io/t/update-fetch-only-one-item-of-a-collection-list/9125 "2024-06-14T15:26:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![StefanSan](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@StefanSan](https://community.weweb.io/u/StefanSan)\
**Post date:** [June 14, 2024, 3:26pm UTC](https://community.weweb.io/t/update-fetch-only-one-item-of-a-collection-list/9125/1 "2024-06-14T15:26:23Z")

</div>

Hello,

i have a collection list of items.  
with a button the user can change some information of the item.  
now i want to show up the new information of the item.

i only see, that i can fetch the whole collection.  
but how can i only update the changed item.

if i fetched the whole collection, the place of the item in the collection list will change in dependence of the sorting style (the user choose) and since the user didn`t know, that the whole list was updated, he don`t understand, where the item is gone.

I take a random query in xano as the basis sortstyle (because i dont find a way to sort randomly in weweb self) and so with every new fetch the sequence of the items changed.  
that is not fine for the user…

thanks for your ideas and help!  
stefan

---

<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:** [June 14, 2024, 3:49pm UTC](https://community.weweb.io/t/update-fetch-only-one-item-of-a-collection-list/9125/2 "2024-06-14T15:49:06Z")

</div>

I think you should handle this on Xano’s side, via making an endpoint, e.g. /get\_details

---

<div class="post-metadata">

**Author:** ![StefanSan](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@StefanSan](https://community.weweb.io/u/StefanSan)\
**Post date:** [June 14, 2024, 5:38pm UTC](https://community.weweb.io/t/update-fetch-only-one-item-of-a-collection-list/9125/3 "2024-06-14T17:38:01Z")

</div>

Hi Broberto,  
thanks for your answer.  
But how to bring the result of that request in a field of the collection list that refers to an result of the originally collectionlist (of all items?)  
i think about a variable, that contains this new detailitam and in the field i make a formula that checks, if the variable exists. if exsists, the field take the value from the variable, if not it takes the result from the collection list.  
stefan

---

<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:** [June 14, 2024, 6:02pm UTC](https://community.weweb.io/t/update-fetch-only-one-item-of-a-collection-list/9125/4 "2024-06-14T18:02:53Z")

</div>

I think you could add that whole collection into a variable, an array to be exact, and then you can change it to whatever you need. You can do so via a workflow → Change variable value, would that work?

---

<div class="post-metadata">

**Author:** ![StefanSan](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@StefanSan](https://community.weweb.io/u/StefanSan)\
**Post date:** [June 14, 2024, 6:19pm UTC](https://community.weweb.io/t/update-fetch-only-one-item-of-a-collection-list/9125/5 "2024-06-14T18:19:27Z")

</div>

hey guy,

you say something fantastic with short words…

that can be a great gamechanger for me.  
i am new to weweb and take directly the collections for the collectionlists.  
but i think i have many more options if i put the collection to an array.

you think there is a sizelimit?  
in that array i load exam questions and some of them have a lot of text…  
and it is possible to load also for example one or two hundred in one collectionfetch…

---

<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:** [June 14, 2024, 6:27pm UTC](https://community.weweb.io/t/update-fetch-only-one-item-of-a-collection-list/9125/6 "2024-06-14T18:27:25Z")

</div>

> [@StefanSan](#):
>
> i am new to weweb and take directly the collections for the collectionlists.

I think it should not be a problem. Actually Collections are Arrays too 🙂 But they’re not editable directly, so if you instead save it in an Array Variable, you get the best of both worlds :))

---

<div class="post-metadata">

**Author:** ![StefanSan](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@StefanSan](https://community.weweb.io/u/StefanSan)\
**Post date:** [June 15, 2024, 7:05am UTC](https://community.weweb.io/t/update-fetch-only-one-item-of-a-collection-list/9125/7 "2024-06-15T07:05:06Z")

</div>

Just like you are standing upside down in the picture, this concept has completely repositioned itself for me. Thank you a lot!
