nielson10
(Nielson Lopes)
#1
How to create a procedure to choose a longer date.
I’m creating an app using internal storage (tinydb)
tag would be in the format MM/yyyy
Ex
10/2021, 11/2021, 12/2021, 01/2022 …
In the logic below it will get the value 12/2021
When the year comes, it’s not going to work, will keep calling 12/2021 and not 01/2022 as I would like.
HritikR
(🧩)
#2
How about using clock component
1 Like
Yes it is very simple, just use month and year in clock component… automatically you can get data as you like
1 Like
nielson10
(Nielson Lopes)
#4
I don’t think I was clear.
I’m using this clock component to save the tags
What is needed is a logiga, for when searching the tags saved in the database. let it look for the newest tag.
I think you have not define your query well… you want the very latest tag or biggest value tag??
nielson10
(Nielson Lopes)
#8
As you did? that’s exactly it
1 Like
dora_paz
(Dora)
#10
Used ListAddon extension . Blocks are draggable
3 Likes
nielson10
(Nielson Lopes)
#11
You are very good.
Thank you very much, it helped me a lot. I had this problem for days.
2 Likes
dora_paz
(Dora)
#12
If works for you mark solution in order to help others with same problem
nielson10
(Nielson Lopes)
#13
What components are these? I’m not locating.
forgive my incompetence
dora_paz
(Dora)
#14
Also you do not have to replicate my blocks. Download them and drag them to creator
2 Likes
system
(system)
Closed
#16
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.