The above blocks work but only visually. The data in chat_input gets saved but keeps getting over-written but visually the list gets updated correctly. I am at a loss.
What is your expectation on what is supposed to be happening?
Are you expecting the Realtime_DB1 to contain all of the chat inputs, or only the last one?
Because right now, this is what it is doing: using the same tag with new data does not add, it replaces.
yes that’s exactly what I want, or was hoping.
You say “tag” but I don’t understand what that means in this context. Seeing older videos mentions tags but that just confuses me even more. Is “tag” the same thing as “key” or something different?
Tag is the same as key (in Classic Thunkable, it is referred to as ‘tag’, but it is the same thing).
So, if you want to ADD to the value in the Database, you would have first to GET the existing content, using the key/tag, then append the new data to the extracted list, then save using the same key again.
You will still overwrite the previous record, but you will be overwriting it with the entirety of its previous value plus the new data, effectively the equivalent of appending.
I am really missing something…
Yes, you are missing something.
What you are getting out of Realtime_DB1 is “value”; that “value” variable contains a copy of everything that was stored under that key. So what you need to append the new text to, is what you are calling “value”. But you could have put “stored chat_output” where the green “value” token is, that would have ment 'put the record you get out from the key in “stored chat_output” ', instead of a local variable named “value”.
But since your ALREADY intend to have the chat session in the database, why do you insist on having it as a “stored” list as well?
And what you are saving after is STILL missing everything you pulled out in “value”
Well, thank you for the help. It did work but of course, opened up a million other problems.
By the way, I didn’t “insist” on anything. I DIDN’T KNOW…Hence, my asking questions.
“insist” in the context means ‘going out of your way’. That does not imply stubbornness, just that unnecessary and overly complicated steps were taken.
I have successfully got private chat to work in thunkable x, and searching for users.
You must join the original messages, with the new messages, and make sure to join the new message at the end of the original list that you get from firebase, to make the chat scroll down as such, instead of up.