# Using Airtable to control Data Viewer Lists

**URL:** <https://community.thunkable.com/t/using-airtable-to-control-data-viewer-lists/1003037>\
**Category:** Questions about Thunkable X\
**Created:** [November 27, 2020, 12:13pm UTC](https://community.thunkable.com/t/using-airtable-to-control-data-viewer-lists/1003037 "2020-11-27T12:13:18Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [November 27, 2020, 12:13pm UTC](https://community.thunkable.com/t/using-airtable-to-control-data-viewer-lists/1003037/1 "2020-11-27T12:13:18Z")

</div>

Hi!

I’m using a Data Viewer list and I have added a table. But the table needs to be updated, and even though I have selected sync with source, it won’t get updated. So I switched to Airtable, but the Data Viewer list isn’t receiving information from Airtable. I can’t use tables inbuilt in the data viewer list, because, they aren’t getting updated.  
Any help on this?  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [November 28, 2020, 4:48am UTC](https://community.thunkable.com/t/using-airtable-to-control-data-viewer-lists/1003037/2 "2020-11-28T04:48:47Z")

</div>

Any help would be appreciated.  
Thanks!

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [November 28, 2020, 4:59am UTC](https://community.thunkable.com/t/using-airtable-to-control-data-viewer-lists/1003037/3 "2020-11-28T04:59:47Z")

</div>

Hi @codeswept, do you want to share one or both versions of the project? I’m not sure why the data viewer list isn’t syncing to your local data source or to Airtable but maybe I can figure out if I see how your blocks are set up.

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [November 29, 2020, 7:49am UTC](https://community.thunkable.com/t/using-airtable-to-control-data-viewer-lists/1003037/4 "2020-11-29T07:49:37Z")

</div>

Sorry for the late reply.  
Sure, will send a screenshot.

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [November 29, 2020, 7:52am UTC](https://community.thunkable.com/t/using-airtable-to-control-data-viewer-lists/1003037/5 "2020-11-29T07:52:08Z")

</div>

This is my code for retrieving data:

 ![Screen Shot 2020-11-29 at 1.20.08 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/6/f6797407b4c7c36d2cd0c13ce8feba515c061c65.png)  
 ![Screen Shot 2020-11-29 at 1.20.36 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/9/993a601b81b3135c8b7790b675bfc9657de7f6b6.png)  
Thanks!

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [November 29, 2020, 8:35am UTC](https://community.thunkable.com/t/using-airtable-to-control-data-viewer-lists/1003037/6 "2020-11-29T08:35:37Z")

</div>

Why are you looping through “each item j in list rows”? It looks like you aren’t using the “j” variable at all. If that’s true, I would remove that loop. And if you’re using the “list of values” block, you probably don’t need to make an Airtable call at all. You could just start with “for each item i in list [list of values…]”.

But aside from all that, have you mapped the Airtable fields to the data viewer fields on the Design tab? Because you shouldn’t have to use any of those “from Data\_Viewer\_List1’s” blocks. You should just update the Airtable data and it should sync down to your custom data viewer layout as long as the fields are mapped.

You can use the refresh block. It’s a little annoying because it re-draws the screen each time.

 ![Screen Shot 2020-11-29 at 12.34.53 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/2/82284bded42b6b7ed982da7990bf1614f7c90c03.png)

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [November 29, 2020, 10:33am UTC](https://community.thunkable.com/t/using-airtable-to-control-data-viewer-lists/1003037/7 "2020-11-29T10:33:08Z")

</div>

Thanks for the answer! What exactly do you mean by

> [@tatiang](#):
>
> it re-draws the screen each time.

Yes, I just realised that the j variable was useless. I’ll remove that. I have mapped the data in the design tab. It wasn’t working,but I’ll check again and get back.  
Thanks!

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [November 29, 2020, 8:56pm UTC](https://community.thunkable.com/t/using-airtable-to-control-data-viewer-lists/1003037/8 "2020-11-29T20:56:18Z")

</div>

When I test the Refresh Data block, it erases the contents of the data viewer grid and then re-draws them. So I see the content (titles, etc.) in the grid, then a flash of a white screen, and then the new data (titles, etc.).

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [November 30, 2020, 8:37am UTC](https://community.thunkable.com/t/using-airtable-to-control-data-viewer-lists/1003037/9 "2020-11-30T08:37:53Z")

</div>

I see what you mean- I face that too. It’s annoying, but there’s no way to counter it.

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [December 1, 2020, 4:57am UTC](https://community.thunkable.com/t/using-airtable-to-control-data-viewer-lists/1003037/10 "2020-12-01T04:57:31Z")

</div>

It’s working, but if I click a button, it’s supposed to add a new row. Once I have tested that, I tried navigating to the data-viewer-list screen, but the new entry did not appear. Any idea why it didn’t come?  
Thanks,  
@codeswept

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 1, 2020, 5:44am UTC](https://community.thunkable.com/t/using-airtable-to-control-data-viewer-lists/1003037/11 "2020-12-01T05:44:36Z")

</div>

So when you click the button, do you see the new row appear with new data in Airtable?

And then after that, if you navigate to the data viewer list screen, the new data doesn’t appear even though you have a refresh block inside the When Screen Opens block?

---

<div class="post-metadata">

**Author:** ![ramanit12ul](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@ramanit12ul](https://community.thunkable.com/u/ramanit12ul)\
**Post date:** [December 3, 2020, 5:49am UTC](https://community.thunkable.com/t/using-airtable-to-control-data-viewer-lists/1003037/12 "2020-12-03T05:49:51Z")

</div>

First use get column to search out particular column then use get row to read the data from table

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [December 3, 2020, 6:39am UTC](https://community.thunkable.com/t/using-airtable-to-control-data-viewer-lists/1003037/13 "2020-12-03T06:39:07Z")

</div>

Thanks @ramanit12ul

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:20pm UTC](https://community.thunkable.com/t/using-airtable-to-control-data-viewer-lists/1003037/14 "2024-11-08T12:20:00Z")

</div>


