RAVAN_0001
(Deepanshu)
August 28, 2023, 12:06am
#1
Hello Everyone I am getting an error when I am trying to store data in Firebase Database Back slash is repeating three times. And it also effing when I retrieve the data.
My error and blocks
Blocks trying to store values using “join”
Output
Blocks trying to store values using “list”
Output
How I want to store
Please help me Where am I doing mistake.
Regards
Zain_Work
(Muhammad Zain)
August 28, 2023, 4:42am
#2
First don’t need to use join block.
Just use make a list block and don’t put / spash
1 Like
Thanks @Zain_Work for replying.
It will not work for me.
I want to store values as arrays and get tham one by one and store each value in different different labels.
The result when I store data is →
30-08-23: [“2000”,“19-08-23”,“pending”]
What I want to store →
30-08-23: “[\“2000\”,\“19-08-23\”,\“Pending\”]”
Thanks.
1 Like
Don’t use slash symbol, directly use make a list block lone. It will store the result as you expect. Do not get bore for firebase extra slash, while you retrieve automatically it will show only the data’s
I used that block but when I try to retrieve it shows errors.
See
Thanks
Show your save block and retrieve blocks
Here is the blocks
storing data
storing data in global list
main block
Thanks
Why r using add item to list???
I tried like this and got output nicely
2 Likes
Thanks for your suggestion @Still-learning and it’s work fine as well.
But If I want to store values in the form of Jason?
Use dictionary blocks to save it as json using key and values
RAVAN_0001
(Deepanshu)
August 29, 2023, 6:46am
#11
How dictionary block can help
I try this block
Result
If I am doing something Wong please guide.
Regards
Yes , why, what is wrong in it? Call the value of that date and use get key value block
RAVAN_0001
(Deepanshu)
August 29, 2023, 10:31am
#15
How do I store values like this data →
“[\“2000\”,\“19-08-23\”,\“Pending\”]”
Zain_Work
(Muhammad Zain)
August 29, 2023, 10:36am
#16
This isn’t json data. This data is in list shap.
You can use make a list block.
So you can easily get your stored data as like :
2000
19-08-23
Pending
In list view
RAVAN_0001
(Deepanshu)
August 29, 2023, 4:08pm
#17
Okay how do I store this??
“[\“2000\”,\“19-08-23\”,\“Pending\”]”
RAVAN_0001
(Deepanshu)
August 30, 2023, 8:20am
#20
Yes I did the same with use of Dynamic Labels but I am getting data getting error when I resign values to dynamic labels I don’t know why this happening.
Error in the sense data is not showing in a manner.