# Cloud variable implementation question

**URL:** <https://community.thunkable.com/t/cloud-variable-implementation-question/1042777>\
**Category:** Questions about Thunkable X\
**Tags:** cloud-variable\
**Created:** [January 9, 2021, 11:00am UTC](https://community.thunkable.com/t/cloud-variable-implementation-question/1042777 "2021-01-09T11:00:39Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![ozel1978](https://avatars.discourse-cdn.com/v4/letter/o/3ec8ea/32.png) [@ozel1978](https://community.thunkable.com/u/ozel1978)\
**Post date:** [January 9, 2021, 11:00am UTC](https://community.thunkable.com/t/cloud-variable-implementation-question/1042777/1 "2021-01-09T11:00:39Z")

</div>

Guys,

i have created variable using cloud but seem not really cloud because it only show in one device. if view other device the result is not reflected. below is my block and, advice me if something wrong with it.  
screen 1

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

screen2  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/8/08771ccd33030ec3727d2decd09a67f05e37723a.png)

screen3

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

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 9, 2021, 11:38am UTC](https://community.thunkable.com/t/cloud-variable-implementation-question/1042777/2 "2021-01-09T11:38:38Z")

</div>

Cloud variables are used in conjunction with Firebase.

Have you supplied the required keys to connect to your Firebase database and store the cloud variable in it?

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [January 9, 2021, 2:53pm UTC](https://community.thunkable.com/t/cloud-variable-implementation-question/1042777/3 "2021-01-09T14:53:23Z")

</div>

> [@muneer](#):
>
> Cloud variables are used in conjunction with Firebase.

You can still use our Firebase (while testing anyway!) @muneer so that shouldn’t affect functionality.

* * *

@ozel1978, on `screen2` can you talk us through what your `GetCell` block is supposed to do?

I’d recommend adding an a label for error handling/debugging during development. (You can always hide this label when you’re ready to ship to production)

---

<div class="post-metadata">

**Author:** ![ozel1978](https://avatars.discourse-cdn.com/v4/letter/o/3ec8ea/32.png) [@ozel1978](https://community.thunkable.com/u/ozel1978)\
**Post date:** [January 9, 2021, 3:06pm UTC](https://community.thunkable.com/t/cloud-variable-implementation-question/1042777/4 "2021-01-09T15:06:56Z")

</div>

Dom,

i want to get specific number from airtable so i am using it getcell.

how to adding label for error?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 9, 2021, 3:30pm UTC](https://community.thunkable.com/t/cloud-variable-implementation-question/1042777/5 "2021-01-09T15:30:43Z")

</div>

You are using `cloud variable number` which actually contains the index of the list in the list viewer. Is this correct?

In this case the rowID of Airtable is very different than the value of the cloud variable and will not provide any data.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 9, 2021, 3:33pm UTC](https://community.thunkable.com/t/cloud-variable-implementation-question/1042777/6 "2021-01-09T15:33:49Z")

</div>

> [@domhnallohanlon](#):
>
> You can still use our Firebase (while testing anyway!) @muneer so that shouldn’t affect functionality.

Will this give the functionality of accessing the variable in different devices (using Thunkable cloud)? Or at least this is what I understood from the post.

I was under the impression that Thunkable cloud will have the cloud variable functioning but the app will not be able to share the data or retain the data between sessions.

---

<div class="post-metadata">

**Author:** ![ozel1978](https://avatars.discourse-cdn.com/v4/letter/o/3ec8ea/32.png) [@ozel1978](https://community.thunkable.com/u/ozel1978)\
**Post date:** [January 9, 2021, 4:26pm UTC](https://community.thunkable.com/t/cloud-variable-implementation-question/1042777/7 "2021-01-09T16:26:10Z")

</div>

Muneer,

yes you right i was not key in api key and database url at setting page. right after that message can view from any different platform.

however new issue occur come in . message 1 does not send to message 2 and from 2 to 3. it was worked before api key issue.

i provide full block incase you guys saw where it stuck.

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

screen1

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

screen2  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/9/899f4f38b455ad87280e85de700b70fab3933ffe.png)

screen3

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

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 9, 2021, 4:46pm UTC](https://community.thunkable.com/t/cloud-variable-implementation-question/1042777/8 "2021-01-09T16:46:07Z")

</div>

I can see from your code that when you open the screen named setting you set the 3 variables to the text of the 3 buttons.

The code is detecting any change in the variables but I do not see any code to change the variables.

In screen2 you are changing variable que1(only if you can get the content from Airtable) but when you go to Screen setting you are resetting it back on the screen open code.

Maybe I’m wrong but this is what I see from your blocks.

---

<div class="post-metadata">

**Author:** ![ozel1978](https://avatars.discourse-cdn.com/v4/letter/o/3ec8ea/32.png) [@ozel1978](https://community.thunkable.com/u/ozel1978)\
**Post date:** [January 9, 2021, 4:52pm UTC](https://community.thunkable.com/t/cloud-variable-implementation-question/1042777/9 "2021-01-09T16:52:00Z")

</div>

this block perfectly executed but i have different design so i try simulate from this block.

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

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

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 9, 2021, 5:37pm UTC](https://community.thunkable.com/t/cloud-variable-implementation-question/1042777/10 "2021-01-09T17:37:02Z")

</div>

Yes, this screen does everything with cloud variables in addition to a text field and a button (share) to start the process.

When you click on [share] button it will assign the text in the buttons to the cloud variables and whatever in the text field [chatinput] to one of the buttons. The next thing is to clear the content of the [chatinput] which will trigger the change event to have the text to move up one button.

---

<div class="post-metadata">

**Author:** ![ozel1978](https://avatars.discourse-cdn.com/v4/letter/o/3ec8ea/32.png) [@ozel1978](https://community.thunkable.com/u/ozel1978)\
**Post date:** [January 10, 2021, 5:28am UTC](https://community.thunkable.com/t/cloud-variable-implementation-question/1042777/11 "2021-01-10T05:28:08Z")

</div>

i am absolutely understand on this technique when it implemented in single page.  
but for multiple page i could not figure it out.

---

<div class="post-metadata">

**Author:** ![ozel1978](https://avatars.discourse-cdn.com/v4/letter/o/3ec8ea/32.png) [@ozel1978](https://community.thunkable.com/u/ozel1978)\
**Post date:** [January 10, 2021, 8:01am UTC](https://community.thunkable.com/t/cloud-variable-implementation-question/1042777/12 "2021-01-10T08:01:14Z")

</div>

Hi All,

i figure it out how to solve the issue, probably kind of ugly but it worked. in screen1 same as previous and at screen 2 i am doing solution who on single page and at screen 3 i just initialize what i am doing in screen2. here the block and thank you for suggestion and advice.  
screen2

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

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

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 10, 2021, 8:01am UTC](https://community.thunkable.com/t/cloud-variable-implementation-question/1042777/13 "2021-01-10T08:01:49Z")

</div>

The trick is to start with the screen that has the initialize or change block to activate the listeners then your magic will work.

---

<div class="post-metadata">

**Author:** ![brucemortland7e6c](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@brucemortland7e6c](https://community.thunkable.com/u/brucemortland7e6c)\
**Post date:** [October 26, 2021, 11:18pm UTC](https://community.thunkable.com/t/cloud-variable-implementation-question/1042777/14 "2021-10-26T23:18:18Z")

</div>

So, I’m trying to work with cloud variable and I’ve checked things, but I must be doing something trivial wrong.

I’ve copied this video: [https://www.youtube.com/watch?v=DYo2h5TXG6U](https://www.youtube.com/watch?v=DYo2h5TXG6U)

And created this code: [Thunkable](https://x.thunkable.com/copy/edbba1b3d7a5b4d321afd5300f6d9525)

Anyone see what I’m missing?

I’m assuming I can use the Live Test as one of the ‘apps’ that are running and sharing the variable.

Thanks for the help!  
Bruce

---

<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:** [October 27, 2021, 1:58am UTC](https://community.thunkable.com/t/cloud-variable-implementation-question/1042777/15 "2021-10-27T01:58:46Z")

</div>

> [@brucemortland7e6c](#):
>
> Anyone see what I’m missing?

About what? It’s helpful if you explain what you _expect_ to happen and what _actually_ happens.

I can tell you that when I Live Test your project in a browser, it saves and retrieves the text I input.

---

<div class="post-metadata">

**Author:** ![brucemortland7e6c](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@brucemortland7e6c](https://community.thunkable.com/u/brucemortland7e6c)\
**Post date:** [October 28, 2021, 11:25am UTC](https://community.thunkable.com/t/cloud-variable-implementation-question/1042777/16 "2021-10-28T11:25:51Z")

</div>

When I use my device and the live test, neither side sees what is the shared information. In other words, the cloud variable appears like a stored variable and is not really shared across the cloud.

---

<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, 1:30pm UTC](https://community.thunkable.com/t/cloud-variable-implementation-question/1042777/17 "2024-11-08T13:30:53Z")

</div>


