Showing data in chart maker from tinydb app inventor

hi there,

I'm want to make a project using ChartMaker in here

I want to use chart maker, data input from another screen. When I try using variable and just for 1 data, my project going well.
Screen1
Screenshot_93

ResultScreen
Screenshot_94

But, when I try use tinyDB, I've got an error.

My Question: How to showing data in chartMaker and data from tinydb in another screen?

1 Like

Keep the first two blocks underneath 'when Button1 click' and add the 'TinyDB value to store' block and make the value a text string with 'hasil' in it. Then, change the value to store to 'get global hasil' and change the last block to not have the 'start Value' and only open another screen. On the ResultScreen, initialize global hasil to 'TinyDB get value' block and make the value, 'hasil'. Next, change the ifValueNotThere to '0'. Drag the block to where the 'get start value' block is and delete the 'get start value' block. Hope this helps! Screenshot 2021-04-12 2.39.39 PM

Use different screens wisely

If you decided to use different screens, then you should switch them correctly, else you will run out of memory after a while...      
The recommended method of switching screens in App Inventor
(Thanks Taifun)
 
Also see demo: multiscreen.aia