I see the guide about dictionay and (if I understood well) if the last key in the path exist it updates the value, if the last key in the path doesn’t exit it will create a new one . This works only for the last key, it’s right?
Well if I test the code in the day of the first add (when it doesn’t exist) and try to add a new one (changed the time with the add day block) it works fine . I tested yesterday, you can see in the db 2 items under PREZZI , 14 and 15, with their values.
I update my apk ,saved items, yesterday I added a product and a price and today when I tried to add a new price got error : Expected a list or dictionary, but found a null when walking path.
I made some test and I can find the keys , it can’t walking year and month and day . Why if I can see it in my db?
Edit I tested also before with 2 item and it doesn’t work , no update (15 is just in dB) and also with one item, new price (with only 14 in dB)
Yesterday all work fine , add , update and also new product using add day block of the clock
Really , I don’t know how to go on
Here the aia test, please don’t focus on other things but only the date path and why I can’t get (but I see) the date items , this is a part of all my code. How I have to change the save path ? Which is my error?
Thank you test.aia (12.7 KB)
@Still-learning usually I don’t like to tag but I don’t known how to go on ,thanks
Really I don’t know why . To work right I have to use trim in get value and in store blocks or without trim as original code. With trim only in get value it doesn’t work .
Thanks for your code, I like to learn how power users work, I mean professional people and not amateur like me. This is only an aia test but your code is always more elegant than my main code
thank you
Ok, but as you can see in the video, yesterday night with trim only in get path give me not found , worked only with trim in both position . The video is about your aia without changes and after I tried to add the trim block in store block too . But is a no sense way as you suggested me