so here's the block where the 'read' screen is (read, write, and log in have different screens). i just don't understand why this won't work... can someone help me? did i make mistakes in the previous screens that's why it won't work?
- What did the above code returns?
- What are you expecting to get?
- Are you sure the tinydb have value? Do you maintain same namespace for tinydb in all screen? Else this it wont give you data.
- What is your firebase structure?
- it's supposed to return the data stored in the firebase like these for examples (there's password below these entries btw. and the 'dewi' was supposed to be the user's username)
- a bunch of entries made by 'dewi' in the listview component in the 'read' screen so the user can look back what they wrote along with the date
- im pretty sure it's the same one for all screen since i copy pasted the anem
- something like this:
What did you get in the gettaglist and getvalue block? Use any one lable and print the result on it
Is your projectBucket set to diarypercobaan3
in the Designer?
okay so I redo it and this is how it looked like now:
BUT now everytime I log in w another account the previous entries made by previous people ALSO can be seen. how do i fix that? im desperate lol
You should setup your blocks for the firebase query so that it only returns the messages for the signed in user in the app.
See how you hang the password under the user name?
Do the same with the Diary, substituting '/Diary' for '/Password'
Note: This doesn't quite fit with the existing database structure and entries, so take it with a grain of salt.
how do i do that??
eeeyupp still doesn't work
(even when i used the old blocks)
I can only give you general advice here.
Know your bucket.
Know the path in your tag.
Verify those against what you see in the Firebase data console.
they all have the same bucket, and im not sure by what u meant with verify against what i see in Firebase data console. the tag have a join block, but for some reason it couldn't retrieve that... but when it's without a join block (like the new blocks but then new problem got there--) it could be retrieved. is the join block the problem? or am i missing something here?
where dewi is the user signed into the app, this will return a dictionary (json string) of all their diary entries.
does that mean it can't do it automatically and need to be manually written?
like for ex there's another user, does that mean when they logged in I have to renew the tag every time?
No, set the signed in user to a variable, and use a join block to build the path
if i initialize global user to " " would it still work? so if a new user came in i dont have to change the initialize user to. and i have this trouble when i use join block i cant get the value for some reason (??)
You can set the user when they register/login.
sorry english isn't my first language so im still confused. i have to change it manually w every new user?
Will the user login to the app, with their username ? If so, you can capture it at that point and set it to your user variable.
Otherwise the user may need to provide their username so that they can return their diary entries.
yeah, they will use their username. for some reason it still doesn't work, I don't understand what's wrong...