# Variables and Data sources

**URL:** <https://community.thunkable.com/t/variables-and-data-sources/2767064>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [January 3, 2024, 3:27pm UTC](https://community.thunkable.com/t/variables-and-data-sources/2767064 "2024-01-03T15:27:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ambrosimo2003rv62](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ambrosimo2003rv62/32/168127_2.png) [@ambrosimo2003rv62](https://community.thunkable.com/u/ambrosimo2003rv62)\
**Post date:** [January 3, 2024, 3:27pm UTC](https://community.thunkable.com/t/variables-and-data-sources/2767064/1 "2024-01-03T15:27:17Z")

</div>

I have a page called “ORARI” and a local database made up of 2 columns (STAZIONE and CODICE), where when I click on a button  
sets the “station variable” from the database and copies the values ​​of the column STAZIONE; and sets the “codex variable” always from the same database and copies the values ​​of the CODICE column.  
when I open the new page called ORAGLOBAL , I set in a SampleList the values ​​of “station variable”. and i see a list of STAZIONE .  
When I press on an item in the SampleList I would like the STATION value to be shown in label 8 and the corresponding CODICE value in label 10.  
In label 8 i see the right selected item but in label 10 i have always 1,3, 5,6,7 etc etc ( the value of CODICE ) but not corresponding .

---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [January 3, 2024, 3:43pm UTC](https://community.thunkable.com/t/variables-and-data-sources/2767064/2 "2024-01-03T15:43:15Z")

</div>

Hi @ambrosimo2003rv62, welcome to Thunkable! 🎉

Be sure to check out our posts about [How to ask Great Questions v2.0](https://community.thunkable.com/t/how-to-ask-great-questions-v2-0/2689983/1) and our [Community Guidelines](https://community.thunkable.com/t/community-guidelines/78/8) as you get started.

It is virtually impossible for us to troubleshoot this issue without seeing your blocks. Could you please post a screenshot of what you have so far?

Thank you!

---

<div class="post-metadata">

**Author:** ![ambrosimo2003rv62](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ambrosimo2003rv62/32/168127_2.png) [@ambrosimo2003rv62](https://community.thunkable.com/u/ambrosimo2003rv62)\
**Post date:** [January 3, 2024, 4:06pm UTC](https://community.thunkable.com/t/variables-and-data-sources/2767064/3 "2024-01-03T16:06:30Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/9/3970df2a6fe2b9b1e7888b944911ce91b5c4a126.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:** [January 3, 2024, 8:34pm UTC](https://community.thunkable.com/t/variables-and-data-sources/2767064/4 "2024-01-03T20:34:10Z")

</div>

Post a screenshot of the database. Also provide an example of what the two labels should show (not just a description but actual sample values from the database).

I’m guessing the problem is that you’re using the codex variable as a property name (which can only be “STAZIONE” or “CODICE”) but I can’t figure out what you’re actually wanting without seeing the screenshot and example data.

---

<div class="post-metadata">

**Author:** ![ambrosimo2003rv62](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ambrosimo2003rv62/32/168127_2.png) [@ambrosimo2003rv62](https://community.thunkable.com/u/ambrosimo2003rv62)\
**Post date:** [January 3, 2024, 8:46pm UTC](https://community.thunkable.com/t/variables-and-data-sources/2767064/5 "2024-01-03T20:46:42Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/e/5eb57f9b6a1fb11126327719812a32ae75940ebd.png)  
this is NA-sarn database

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/a/3aa3ecd277bbfb3d4c2ef1dd88e9ac2be24512dd.png)  
in label 10 i see all codice and not corrisponding

---

<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:** [January 3, 2024, 11:08pm UTC](https://community.thunkable.com/t/variables-and-data-sources/2767064/6 "2024-01-03T23:08:38Z")

</div>

> [@ambrosimo2003rv62](#):
>
> in label 10 i see all codice and not corrisponding

I need to know what you **want** to see in Label10.

---

<div class="post-metadata">

**Author:** ![tthompson41231](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tthompson41231/32/161401_2.png) [@tthompson41231](https://community.thunkable.com/u/tthompson41231)\
**Post date:** [January 4, 2024, 4:14am UTC](https://community.thunkable.com/t/variables-and-data-sources/2767064/7 "2024-01-04T04:14:54Z")

</div>

Is this what you want to do?

 ![Sample](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/0/f0c9334f2a0fdd528897c12f58449b73e9ac26b8.png)

---

<div class="post-metadata">

**Author:** ![ambrosimo2003rv62](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ambrosimo2003rv62/32/168127_2.png) [@ambrosimo2003rv62](https://community.thunkable.com/u/ambrosimo2003rv62)\
**Post date:** [January 5, 2024, 10:01pm UTC](https://community.thunkable.com/t/variables-and-data-sources/2767064/8 "2024-01-05T22:01:05Z")

</div>

@tatiang I want that the right codice in picture , after item selected is Napoli P Garibaldi and is OK in label 10, i want the number in Label 10 is the Codice of database .  
in picture for Napoli P.garibaldi is 3 and not 1, 3, 5 , 6, 7, etc etc etc

---

<div class="post-metadata">

**Author:** ![ambrosimo2003rv62](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ambrosimo2003rv62/32/168127_2.png) [@ambrosimo2003rv62](https://community.thunkable.com/u/ambrosimo2003rv62)\
**Post date:** [January 5, 2024, 10:05pm UTC](https://community.thunkable.com/t/variables-and-data-sources/2767064/9 "2024-01-05T22:05:22Z")

</div>

ok @tthompson41231 with your block is ok… thanxs

---

<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:** [April 4, 2024, 10:05pm UTC](https://community.thunkable.com/t/variables-and-data-sources/2767064/10 "2024-04-04T22:05:58Z")

</div>

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