# Refresh object Table

**URL:** <https://forum.wixstudio.com/t/refresh-object-table/21465>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [April 29, 2019, 12:00am UTC](https://forum.wixstudio.com/t/refresh-object-table/21465 "2019-04-29T00:00:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricardocamargos88](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/ricardocamargos88/32/11643_2.png) [@ricardocamargos88](https://forum.wixstudio.com/u/ricardocamargos88)\
**Post date:** [April 29, 2019, 12:00am UTC](https://forum.wixstudio.com/t/refresh-object-table/21465/1 "2019-04-29T00:00:27Z")

</div>

Hi there,

I’m trying to refresh a table connected to a dataset.

First I select a row and get the data to input textbox. So, I change the values and update the data on the collection.

I’m stucked trying to refresh the dataset and table to remove the values that I already changed.

Has someone tried to do something like that ?

Thanks in advance.

Ricardo

---

<div class="post-metadata">

**Author:** ![givemeawhisky](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/givemeawhisky/32/5383_2.png) [@givemeawhisky](https://forum.wixstudio.com/u/givemeawhisky)\
**Post date:** [April 29, 2019, 9:15pm UTC](https://forum.wixstudio.com/t/refresh-object-table/21465/2 "2019-04-29T21:15:47Z")

</div>

There are previous forum posts about it that you can look at:  
[https://www.wix.com/corvid/forum/community-discussion/is-there-a-way-to-update-an-individual-field-of-a-collection](https://www.wix.com/corvid/forum/community-discussion/is-there-a-way-to-update-an-individual-field-of-a-collection)  
[https://www.wix.com/corvid/forum/community-discussion/update-an-existing-row-in-db-in-new-data](https://www.wix.com/corvid/forum/community-discussion/update-an-existing-row-in-db-in-new-data)  
[https://www.wix.com/corvid/forum/community-discussion/button-to-submit-data-refresh-database-and-refresh-page](https://www.wix.com/corvid/forum/community-discussion/button-to-submit-data-refresh-database-and-refresh-page)

[https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#refresh](https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#refresh)  
[https://www.wix.com/corvid/reference/wix-data.html#update](https://www.wix.com/corvid/reference/wix-data.html#update)  
[https://www.wix.com/corvid/reference/wix-data.html#save](https://www.wix.com/corvid/reference/wix-data.html#save)  
[https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#setFieldValue](https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#setFieldValue)  
[https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#setFieldValues](https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#setFieldValues)

---

<div class="post-metadata">

**Author:** ![ricardocamargos88](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/ricardocamargos88/32/11643_2.png) [@ricardocamargos88](https://forum.wixstudio.com/u/ricardocamargos88)\
**Post date:** [April 29, 2019, 9:52pm UTC](https://forum.wixstudio.com/t/refresh-object-table/21465/3 "2019-04-29T21:52:57Z")

</div>

Hi [givemeawhisky](https://forums.wixapps.net/community-discussion/refresh-object-table?cacheKiller=1556548410435&compId=TPASection_jt5yzo1g&currency=ILS&deviceType=desktop&height=626&instance=3x_VeMh380d5Dgkc0jOR2w-grVd4bx6h4WpLIMS48x4.eyJpbnN0YW5jZUlkIjoiMjViODlmMmItM2JmYy00NmNiLTg5NzgtODJiNGMwYTEyN2U3IiwiYXBwRGVmSWQiOiIxNDcyNGYzNS02Nzk0LWNkMWEtMDI0NC0yNWZkMTM4ZjkyNDIiLCJtZXRhU2l0ZUlkIjoiNWUwNjY5MzgtMmJlZS00OWViLWIzNTEtZDkzYTQ0YmNhNmNjIiwic2lnbkRhdGUiOiIyMDE5LTA0LTI5VDIxOjQ3OjQxLjk5NFoiLCJ1aWQiOiI1MTc1ZGQ0MC01MmQ4LTQ1ODUtYjIwZC0zNzkyMjg2N2RiMGYiLCJpcEFuZFBvcnQiOiIxODkuMTAwLjEzNC4yNDgvMzkwMjAiLCJ2ZW5kb3JQcm9kdWN0SWQiOm51bGwsImRlbW9Nb2RlIjpmYWxzZSwiYWlkIjoiYTE1NmUxZjItMWY0Ni00ODEzLWFkODQtNjI0YWYzYWQwNzEwIiwiYmlUb2tlbiI6IjdiYmVmNjEzLTEwMTItMGYyMC0zYTI5LTViOGU4NDFkODEyYiIsInNpdGVPd25lcklkIjoiMzc1ODgyM2MtZWFmMy00Njk0LTljMDktY2I3MGY5NTk3ZWMzIiwiZXhwaXJhdGlvbkRhdGUiOiIyMDE5LTA0LTMwVDAxOjQ3OjQxLjk5NVoifQ&locale=en&pageId=boke6&section-url=https%3A%2F%2Fwww.wix.com%2Fcorvid%2Fforum%2F&siteRevision=4029&target=_top&viewMode=site&width=1115#) ,

Thank you for your answer. However those posts didn’t help me.

I’m looking for something that I update the value in the collection (I already have it) and the table object refreshes on the screen.

I tried the code “w$(‘table1’).refresh()” or “w$(‘dataset1’).refresh” after the ‘wixData.update(collection, item)’ but when it runs the table updates intermittently. Sometimes it runs correctly and sometimes not.

Thanks,

Ricardo

---

<div class="post-metadata">

**Author:** ![zarboervolk](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/zarboervolk/32/30191_2.png) [@zarboervolk](https://forum.wixstudio.com/u/zarboervolk)\
**Post date:** [May 24, 2022, 8:36pm UTC](https://forum.wixstudio.com/t/refresh-object-table/21465/4 "2022-05-24T20:36:21Z")

</div>

Hi Ricardo. I need to refresh a table too. Did you find a solution?

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [May 24, 2022, 8:50pm UTC](https://forum.wixstudio.com/t/refresh-object-table/21465/5 "2022-05-24T20:50:56Z")

</div>

@zarboervolk  
Show your current running code, related to your described issue.  
And next time it would be better to open your own post and describe your own issue, instead of bumping-up old posts.

This way you will get your answer faster.

---

<div class="post-metadata">

**Author:** ![zarboervolk](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/zarboervolk/32/30191_2.png) [@zarboervolk](https://forum.wixstudio.com/u/zarboervolk)\
**Post date:** [June 20, 2022, 9:21pm UTC](https://forum.wixstudio.com/t/refresh-object-table/21465/6 "2022-06-20T21:21:40Z")

</div>

@russian-dima Thanx for your response. I just need code to refresh the data in a table on one of my pages.  
When the visitor submits information it goes into the collection correctly BUT it doesn’t update the table on the page. I want to know how to update (or refresh the table without reloading the entire page.

Thank you.

---

<div class="post-metadata">

**Author:** ![giri-zano](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/giri-zano/32/80469_2.png) [@giri-zano](https://forum.wixstudio.com/u/giri-zano)\
**Post date:** [June 22, 2022, 8:11pm UTC](https://forum.wixstudio.com/t/refresh-object-table/21465/7 "2022-06-22T20:11:08Z")

</div>

@zarboervolk Set the .rows property to an emprty array first (“[]”) and then set .rows with new data. That should do the trick.

---

<div class="post-metadata">

**Author:** ![zarboervolk](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/zarboervolk/32/30191_2.png) [@zarboervolk](https://forum.wixstudio.com/u/zarboervolk)\
**Post date:** [June 23, 2022, 10:08am UTC](https://forum.wixstudio.com/t/refresh-object-table/21465/8 "2022-06-23T10:08:47Z")

</div>

Hi Giri. Im not sure i understand. So i should send empty data to the table first?
