# Get the last entry in local table

**URL:** https://community.thunkable.com/t/get-the-last-entry-in-local-table/2351457
**Category:** Questions about Thunkable X
**Tags:** beginner, help
**Created:** [March 30, 2023, 4:22pm UTC](https://community.thunkable.com/t/get-the-last-entry-in-local-table/2351457 "2023-03-30T16:22:43Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![matt\_toyntond361](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@matt\_toyntond361](https://community.thunkable.com/u/matt_toyntond361)
#### Post date: [March 30, 2023, 4:22pm UTC](https://community.thunkable.com/t/get-the-last-entry-in-local-table/2351457/1 "2023-03-30T16:22:43Z")

</div>

Hi

Im looking to get the last value (most recent addition) from a local table and output it to a text box - can you advise where im going wrong ( occurence is empty at the moment but have tried a few text values to no avail) feels like i need an object Value here

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/b/6bf9f21710851b177a1fdfc5412d16f9f1e163af.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/a/2aed5beafa8c53f2e1a1f414830c6a9a9eeda262.png)  
value here will be updated dynamically from another page

---

<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: [March 30, 2023, 4:51pm UTC](https://community.thunkable.com/t/get-the-last-entry-in-local-table/2351457/2 "2023-03-30T16:51:15Z")

</div>

One option is to simply store the new value in a variable whenever you change it. Then you can just reference that variable.

Another is:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/8/789d91b660c70e648e96395855857c0495076669.png)

---

<div class="post-metadata">

### Author: ![matt\_toyntond361](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@matt\_toyntond361](https://community.thunkable.com/u/matt_toyntond361)
#### Post date: [March 30, 2023, 5:47pm UTC](https://community.thunkable.com/t/get-the-last-entry-in-local-table/2351457/3 "2023-03-30T17:47:50Z")

</div>

Thanks Tatiang  
I did try this but seems to pull through all values still (if this looks correct)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/0/a0f7dbc044f859d50b54bef91311395a37c06e02.png)

And

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/d/1d9139411b3acf3104adbdc17a57c11d770bb6ed.png)

Tried both of these, but get the same result

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/0/30a58ab2babb10f8b883f0fd1089ce0b346a4e18.png)

---

<div class="post-metadata">

### Author: ![matt\_toyntond361](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@matt\_toyntond361](https://community.thunkable.com/u/matt_toyntond361)
#### Post date: [March 30, 2023, 6:05pm UTC](https://community.thunkable.com/t/get-the-last-entry-in-local-table/2351457/4 "2023-03-30T18:05:28Z")

</div>

looks like i didnt follow instruction properly @tatiang your advice was spot on, i added an extra list block , removed and now working

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/c/ec29e4d5fb7f7d4aa8c6a06f39b0e8e9d5af8c9c.png)

---

<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: [March 30, 2023, 7:20pm UTC](https://community.thunkable.com/t/get-the-last-entry-in-local-table/2351457/5 "2023-03-30T19:20:59Z")

</div>

Yep, you found the culprit!

The [list of values] block is already a list so it’s redundant (and problematic) to make it into a list with that extra block.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [June 28, 2023, 7:21pm UTC](https://community.thunkable.com/t/get-the-last-entry-in-local-table/2351457/6 "2023-06-28T19:21:20Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
