# List Inception?

**URL:** https://community.thunkable.com/t/list-inception/609858
**Category:** Questions about Thunkable X
**Created:** [June 11, 2020, 9:08pm UTC](https://community.thunkable.com/t/list-inception/609858 "2020-06-11T21:08:33Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)
#### Post date: [June 11, 2020, 9:08pm UTC](https://community.thunkable.com/t/list-inception/609858/1 "2020-06-11T21:08:33Z")

</div>

Well, I am out of School and that means I am back Thunking. And right back to the fickle Coding gods.

So, I need a list within a list. Essentially I have a list where there are patient names. If I click on a name it will populate as follows

 ![PF 1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/d/4d489c32a0760c4a07e72cd4e76bab1816cdef4e.jpeg)  
And If I click on Patient 1

 ![PF 2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/b/ab2fdbe5d8efb08006212e2051110c733e20383f.jpeg)

I used these blocks to get the data

 ![Annotation 2020-06-11 215609](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/7/8751f62c5a2e168316d59523701168b284f9fced.jpeg)

And this to view the internal list

 ![Annotation 2020-06-11 215637](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/d/ad0e22c9928607cf328f16ac09ac29294382e0b5.jpeg)

What I am looking to be able to do is to be able to click on say Medication 1 that belongs to Patient 1 and delete Medication 1 after an Alert pops up to confirm the removal. I have attempted this iteration ![Annotation 2020-06-11 220049](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/e/0e617f86e16490cc48e2a53de2486f489df3e14f.jpeg)  
But the “Change stored PF by Item” ends up crashing the system and if I remove it, then I can Navigate to my Main View but Medication 1 remains in the stored PF.

I also tried

 ![Annotation 2020-06-11 220330](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/8/78d80abdd54e2319adbdd78d8ee955ba613e772b.jpeg)  
But it would remove the entire Patient 1 from the PF

I also tried to create an entire edit page that the Patient 1 Information would populate and could then be changed and save, but my result is I then have 2 "Patient 1"s one with Med 1 and one without.

Not sure if you all have any up or downstream ideas for how to fix this. What my current iteration has is the edit screen. But that would require the User to then look at the 2 "Patient 1"s and then pick the updated one which I would like to avoid if possible.

I can post the project also if you would like 🙂

---

<div class="post-metadata">

### Author: ![mythi](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mythi/32/70585_2.png) [@mythi](https://community.thunkable.com/u/mythi)
#### Post date: [June 11, 2020, 9:52pm UTC](https://community.thunkable.com/t/list-inception/609858/2 "2020-06-11T21:52:16Z")

</div>

Hi @huntermclarkn, not sure if this is the best answer, but maybe you can use a database of sorts, and then in the listing of the names you would just fetch the name column.

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [June 12, 2020, 10:08am UTC](https://community.thunkable.com/t/list-inception/609858/3 "2020-06-12T10:08:22Z")

</div>

First, you need to learn the concept of “one to many”, which is used for data communication. This means that one element in the main table corresponds to several elements in the subordinate table. The relationship of these elements is based on a unique key or record ID in the main table, for example:

Main table

key name

id1 Patient 1  
id2 Patinent 2  
idN Pftient N

Detail table

key name

id1 Med1  
id1 Med 2  
id1 Med 3  
id2 Med 1  
idN Med 2  
idN Med 3

I think it will be easier for you to understand what you need to do.

---

<div class="post-metadata">

### Author: ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)
#### Post date: [June 16, 2020, 1:45pm UTC](https://community.thunkable.com/t/list-inception/609858/4 "2020-06-16T13:45:43Z")

</div>

Okay, not sure if this is what you mean, but I tried this for viewing

 ![Annotation 2020-06-16 144258](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/4/c44dd329d19e4840afec7b8257cc5b45b3223c07.jpeg)  
And this for deleting  
 ![Annotation 2020-06-16 144313](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/b/7b30fe05d3ed99ed6b68f2c0076692ef81cfafc9.jpeg)

Nothing crashes and the Medications present themselves correctly. But it doesn’t delete the medication

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [June 16, 2020, 4:39pm UTC](https://community.thunkable.com/t/list-inception/609858/5 "2020-06-16T16:39:35Z")

</div>

Unfortunately, right now Thunkable X is very unstable and I can’t give advice until it is stable.

---

<div class="post-metadata">

### Author: ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)
#### Post date: [June 17, 2020, 8:24pm UTC](https://community.thunkable.com/t/list-inception/609858/7 "2020-06-17T20:24:01Z")

</div>

I gave this iteration a shot as well

 ![Annotation 2020-06-17 212228](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/6/a6902877d0fef0b6aa588dcb87d2af8ddebd4062.jpeg)  
But it deleted the entire list not just the medication

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [June 18, 2020, 7:57am UTC](https://community.thunkable.com/t/list-inception/609858/8 "2020-06-18T07:57:34Z")

</div>

Instead of deleting the list delete the options in it by key from the main table

---

<div class="post-metadata">

### Author: ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)
#### Post date: [June 18, 2020, 9:58am UTC](https://community.thunkable.com/t/list-inception/609858/9 "2020-06-18T09:58:54Z")

</div>

Gave that a shot trying this, but it won’t delete anything

 ![Annotation 2020-06-18 105805](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/8/983ff47a27219d031474a32f90c24627878e0c8a.jpeg)

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [June 18, 2020, 10:35am UTC](https://community.thunkable.com/t/list-inception/609858/10 "2020-06-18T10:35:52Z")

</div>

You need to understand everything yourself:

You clicked the button to delete an entry from the list. In this click button block, make blocks to delete from the list without switching to another screen, and so on.

You need to understand whether the delete block from the list works at all. make these blocks and show them to me.

Example of deleting an option from the list

[https://x.thunkable.com/projects/5e36a58e5cf8437f0e791129/project/properties/designer/](https://x.thunkable.com/projects/5e36a58e5cf8437f0e791129/project/properties/designer/)

---

<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, 11:25am UTC](https://community.thunkable.com/t/list-inception/609858/11 "2024-11-08T11:25:39Z")

</div>


