JSON Bound Data List Viewer - No More Cloning!

I just want to thank you for sharing this approach. I just updated my DeluxeTube player tech-demo by replacing the legacy list with data list viewers and it already looks so much better! Check it out here: http://community.thunkable.com/t/deluxetube-a-youtube-video-player-tech-demo/

2 Likes

Glad to hear it!

1 Like

First: Thank your very much! This is really helpful. I already gave up on using the new data view components as iam using external json.

I got it to work with a webApi and on desktop it looks good. On my android device in preview it does produce some problems. As iam trying to solve them, could you please elaborate on the “Waiting” block? I could not figure out what kind of variable or component it is. It used an app variable for it, but maybe thats wrong.

Thanks alot!

1 Like

@ tmurachpx,
The waiting block was created by defining a loop and renaming the variable. It effectively creates a “SCREEN” level variable.

1 Like

Thanks for the quick answer. Iam sorry, Iam new to thunkable. Which component creates a loop? I can’t find it

1 Like

I create the Waiting variable with the COUNT WITH block. After creating the variable, you can delete the COUNT WITH block.
image

1 Like

Hi, @drted! Thank you for referring your post to my question

I would like to know how would I incorporate a search option with this idea - can you shine some light? I am a bit confused…

Thanks!

1 Like

Hi!

I try your idea with firebase, but I’m missing something.
App crashes at this point.

firebase

2 Likes

This is not an object this is why it fails
image

2 Likes

I changed all pink to text 1234 and still not working.

1 Like

another version, same db structure.

‘no data’.

1 Like

Why do you use that “cloud variable” ?
Try “set stored variable MO_dawne to value” directly… whats the point of that cloud ?

2 Likes

right. I returned to cloud variable.

I now have it almost working. It just crushes when gray block are added. :]

1 Like

just like @muneer already said, that is not an object. working on an example right now for you.

2 Likes

1 Like

Ok, but that was the point, to eliminate numerous get db pings, reduce it to one chunk (JSON?) and then get all needed values.

2 Likes

I was thinking your way…
On the other hand, you just can call Get once, with key user_id/MO, and put value into a variable
This way you get an object with all values in it, then refer to this object`s properties as needed like get object properties of/get object properties of (as many layers as you need to get to that you needed
(have some stuffs to do right now, but ill provide an example as soon as i can)

2 Likes

3 Likes

See this structure using your data, It may help you to get the blocks in the right way

3 Likes

@mimostel
Your solution with pink “get property ryt” etc. crashes.

1 Like