# Updating a list during the process

**URL:** <https://community.thunkable.com/t/updating-a-list-during-the-process/3094772>\
**Category:** Issues / Bugs\
**Created:** [July 11, 2024, 5:04am UTC](https://community.thunkable.com/t/updating-a-list-during-the-process/3094772 "2024-07-11T05:04:57Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)\
**Post date:** [July 11, 2024, 5:04am UTC](https://community.thunkable.com/t/updating-a-list-during-the-process/3094772/1 "2024-07-11T05:04:57Z")

</div>

Hello - This is probably an easy case but i tried a million of versions of my thoughts cant get it to work properly. This is the case.

The following list of “Locations” initializes when user open my app. The list is visible in a “Simple List”  
It works fine. In the app user can also seach for other “Locations” and pressing enter i have told the app that if this new location is not already in the list it should be inserted as number 2 in the list. All this works perfect. Except if i close the app the list should be updated with the new “Location”

But regardless how i do i cant get it saved as part of the initial list of location

I have tried to use the insert in a sub list etc etc

So, how can i insert a new location to the list and keep it in the list so that the complete list is showed next time the user open the app. Whats your best ideas?  
All this is on user level

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

This is one of the tests that does not work. The “myNewstationlist” just gets a NULL in response (Yes i made a control for NULL earlier in the process)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/f/6f945a4f4260e08c08222cbdf9bb1f4de89d51dd.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:** [July 11, 2024, 7:37am UTC](https://community.thunkable.com/t/updating-a-list-during-the-process/3094772/2 "2024-07-11T07:37:34Z")

</div>

Try this:

Project link: [Thunkable](https://x.thunkable.com/copy/2abf3dfcaf7e41d4e1e1c67ffa711552)

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

---

<div class="post-metadata">

**Author:** ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)\
**Post date:** [July 11, 2024, 8:33am UTC](https://community.thunkable.com/t/updating-a-list-during-the-process/3094772/3 "2024-07-11T08:33:49Z")

</div>

Hi ok - Just a question first. Did you confirm it worked when you closed the app and reopened it ?

---

<div class="post-metadata">

**Author:** ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)\
**Post date:** [July 11, 2024, 3:58pm UTC](https://community.thunkable.com/t/updating-a-list-during-the-process/3094772/4 "2024-07-11T15:58:28Z")

</div>

Hi - Looking at this more careful- i have already tried that. The list it self is updated. and you can see that the new item is coming in to the list as expected. However the textline with silver organge and blue - still remain as is. And that is the one i need to change.

When the app is opened it should initialize that list with silver and blue etc. Since the “new” is not there it wont be showing all…

Any new ideas…

---

<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:** [July 12, 2024, 12:28am UTC](https://community.thunkable.com/t/updating-a-list-during-the-process/3094772/5 "2024-07-12T00:28:05Z")

</div>

> [@stefansladdeneng1](#):
>
> Hi ok - Just a question first. Did you confirm it worked when you closed the app and reopened it ?

No, because I was pretty confident in my coding.

I just tested it on an iPhone 13 Pro and it works as expected: when I open it the first time, I see the simple list:

```auto
silver
orange
blue
green
yellow

```

I pressed “Add new item” twice, then force quit Thunkable Live and re-opened the project. The simple list appeared as:

```auto
silver
*new*
*new*
orange
blue
green
yellow

```

---

<div class="post-metadata">

**Author:** ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)\
**Post date:** [July 12, 2024, 4:52am UTC](https://community.thunkable.com/t/updating-a-list-during-the-process/3094772/6 "2024-07-12T04:52:02Z")

</div>

OK Thank you - You wrote “Try this” which made me think that i had to be clearer in my question. That is why i asked. Ill get back to you shortly.

---

<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:** [July 12, 2024, 4:59am UTC](https://community.thunkable.com/t/updating-a-list-during-the-process/3094772/7 "2024-07-12T04:59:23Z")

</div>

Sorry, I should have said “This will work.” 😉

---

<div class="post-metadata">

**Author:** ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)\
**Post date:** [July 12, 2024, 7:00am UTC](https://community.thunkable.com/t/updating-a-list-during-the-process/3094772/8 "2024-07-12T07:00:53Z")

</div>

And i can confirm it does 😃 som thanks alot. i had to tweek it a bit because the application and code is a lot bigger than the example. And in fact i think i saw a bug.  
When having everything set allright according to your desc, it worked fine in the app but in both webview and thunk live i got the list divided by letter (One letter per list item)

But when running testflight it works fine…

Again - Tatiang - Thanks for your help…

---

<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:** [July 12, 2024, 7:25am UTC](https://community.thunkable.com/t/updating-a-list-during-the-process/3094772/9 "2024-07-12T07:25:41Z")

</div>

You’re welcome. If you assign a non-list variable to a simple list’s text items, it will split it into separate lines.

---

<div class="post-metadata">

**Author:** ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)\
**Post date:** [July 12, 2024, 8:00am UTC](https://community.thunkable.com/t/updating-a-list-during-the-process/3094772/10 "2024-07-12T08:00:03Z")

</div>

Hmmm  
How do you mean - It worked in Testflight - but not in webversion or in Thunk live… ?

---

<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:** [July 12, 2024, 11:08am UTC](https://community.thunkable.com/t/updating-a-list-during-the-process/3094772/11 "2024-07-12T11:08:33Z")

</div>

Can you post a screenshot (or project link) of the blocks where you:

1. Initialize and (if no initial value is given) first set the value of the list variable that will eventually be displayed in a Simple List

2. Set the final value of the list that will be displayed in the Simple List

3. Set the value of the Simple List’s text items
