2017년 1월 13일 금요일

Tiny DB not saving right


In our STEMCommunity screen, we have it so you enter text, its saves to the db, and displays the text in a list viewer. 

What we are having trouble with, is that 

when we re open the screen, the text previously entered and displayed does not show up, 
and when new text is entered, if previous entered text was there, the new text would just replace the old text. 

I have attached the aia of our app, please look and if you have any way to help us, please let us know by Sunday at the lastest.


--
If you are asking for help, I recommend you to make it as easy for others to be able to help you ...
You probably will get more feedback then...

which means in your case post a screenshot of your relevant blocks...


To download the aia file, upload it to  App Inventor, open it, do some bug hunting for you, etc... this takes time, and most people will not do that...

-- 
No i mean i know how to open the aia, i just attached the file in case people wanted to download and give us some advice. I attached the screenshots of the programming we have for the screen

MuseBlocks.PNG 표시 중

MuseBlocks2.PNG 표시 중

MuseBlocks3.PNG 표시 중

MuseScreenShot.PNG 표시 중

-- 

when we re open the screen, the text previously entered and displayed does not show up, 

you will have to use TinyDB.GetVAlue to read tha old post from TinyDB and assign it to the textbox


and when new text is entered, if previous entered text was there, the new text would just replace the old text. 
this is what you are doing, if you want to store all entered texts, you then have to store the list global NewPost instead of PostTextbox.Text

btw. why do you store additionally in TinyWebDB?
also you should switch screens correctly to avoid issues, see here

also this does not make sense...
PostsWebDB is a TinyWebDB component and not some text... what are you trying to do?

-- 
There are several problems ...

In the second shot, you are trying to TEXT JOIN a list to a string to a list in the middle of a button procedure.
Won't work.  
Explain what that is supposed to accomplish?

In the third screen shot, you are trying to save a TinyWebDB component as a member of a list newPost.
The component is a piece of software, not data.

When data comes back from your TinyWebDB, you immediately ask for it again?
That would send your app into a coma, unless you pace yourself with a clock.
Maybe you don't need to do that at all?

You are opening Screen1 from another screen.
See the topics on how to manage screens in the Screens section of this FAQ ...

You don't seem to have enough tags or variables,
to distinguish between just the one newest post (newpost) versus allthe posts so far (allposts).

(end of patience, not of bugs.)

-- 
Thank you both so much! I didn't think i would get such a quick reply, so thank you for that too. I will try what you both said and let you know how it goes. Thanks again!

-- 


댓글 없음:

댓글 쓰기