When the key (Evenement/2020/test3 ) exist there are no problem.
If the key does not exist (for example( (Evenement/2020/test1 )), so if this record does not exist (Evenement/2020/test1 ) in the realtime Db (firebase)
The IF not error is dedected , so there an error (else) Then the error is not displayed , the App block !!!
Can some one give me an idea about the resolution of this problem ?
Then if the key exist like showed :Evenement/2020/test3 the get works perfectly.
Now if I want to make a call get from a key who does not exist then i’m waiting to receive an error. Is not the case in state of receiving an error the App block
in stade of receiving an error I see a blank / white screen when you live test (even if there are items in my app) and I m blocked. Do you have any idea to resolve this problem ?
You could check for a value of null (does not exist) or you could use cloud variables instead of the realtime db block. When you use cloud variables, you’ll also need to check for a null value, I believe.
The value null is well detected , the value is in this case “undefined” .
Special character like " # , / …etc " are also detected , in this case a error is detected.
But what I need is to detect if the variable entery is existing or not in the realtime db.
If the value is existing there is no problem.
if the value is not existing in the Realtime db , then I get a problem ,my screen freeze wite .
I would expect the function "in Realtime Db1 call get " with a key (in my example:“Evenement/2020/test1”) could trap an error if the specific key does not exist in the Realtime Db1.
Is there a correction for this case ?
I looked in the chats of the community , but I can not find any solution already treated on this subject
If I replace the key by “null” then I receive in the text input a value from " get property of object “Name” to undefined but this does not tell me that the value test1 from the key Evenement/2020/test1 does not exist.
If I replace the key by Evenement/2020/null then the problem stay the same my screen freeze wite.
Hello I m back find below some test that I have just make ; onother thing that I have to add is that all my App is using the realtime DB , that why I m afraid to hear not to use it .
.
This cloud variable is working very well I get directly the name , info , doc … all the property of my record from firebase and in surplus I can show the field name(Date,Document,Info,Name) of my keys thx for it .
using only the cloud varaiable if the key is not existing of a part of the key ( in our case the key part" test1 " of Element/2020/test1)in the real time db then the problem remain the same my screen go white and the App is blocking
In any case thankx very much for your support , it was very usefull and educational.
In other end I thing it’s petty that using thunkable reading Firebase a trap on key not found is not add or eventually a time out .Maybe this is a subject to go back to the developper of thunkable. but for that i am still too new to this site and still too little experienced .
One more time thx and I wish you a happy new year …coronna free