Hi,
Merry Christmas!
The attached is a TinyDB project to store and show notes, also used a Kio4_TingyDBx.
problems:
It didn't show in order stored sequence, but show the sequence of date and alphabetical order,say the stored group as: 26/12/2021 20:19 zhangsan note / 29/12/2021 20:21 Lisi notelisi
but the shown picture can't see that.
The last 4 lines on the last picture is the shown result.
how to show item by item by the button 'next'?
Thanks
Adam
How are we to know which textbox is which, if you did not rename them properly in the Designer?
txbDate
txbTime
txbEvent
txbNote
...
Your tag design is all wrong.
If you want to see events in time order, you need tags that increase as the date/time for the events increase.
You have 2 alternatives for such a tag design:
milliseconds from 1970, using the Clock component's time conversion blocks, or
yyyymmddhhmmss datetime format, which is sortable by date/time.
By the way, TinyDB tags are sorted, so your events would be retrieved chronologically in a Tag List.
There is no law saying you have to use readable formats as your TinyDB tags, if you are served better by less readable but more functional tags. Just use text and Clock blocks to convert those datetime values in and out of readable formats on their ways out and in of TinyDB.
For saving both an Event and a Note under the same tag, you can choose between several alternative ways:
use two TinyDB Namespaces with datetime tags, one for Events and the other for Notes.
Store the Events and Notes together in one TinyDB, together in a list (event, note) under each datetime tag
Store the Events and Notes together in one TinyDB, together in a text value event| note under each datetime tag. Split them at | to separate them.
Store the Events and Notes together in one TinyDB, together in a text value event \n note under each datetime tag. Split them at \n to separate them. (\n is line feed).
you are trying to set the fontsize of Label6? does that make sense?
what are the 24 hours you are talking about? what do you get and what do you expect instead?
also what about following that advice?
If you are asking for help, I recommend you to make it as easy for others to be able to help you ...
You probably will get more feedback then...
which means in your case post a screenshot of your relevant blocks...
in your case the ClearAll button click event and the Show All TinyDB button click event... I expect, that you meanwhile renamed the components (textboxes, labels, buttons) accordingly as @ABG already suggested for easier understanding of the blocks...
To download the aia file, upload it to App Inventor, open it, do some bug hunting for you, etc... this takes time, and most people will not do that...
Thank you.
which one is lable6?
you already have the data listed vertically in tjr list view.
i did not see any block for clear all.
which block you try ' do it' and waht result you want?