Look again at my structure, and the top node which is aquarium (this is set as projectBucket)
To populate your display, you need to call back the tag for the selected value (create a spinner or use a popup menu extension for this).
Then you would send your get value:
e.g. as in my example
getValue: salinity
which will return all the values in the tag salinity. You would then need to process the returned json (make human readable dates from timestamps/ get the value for each) for displaying in a list.
I do not see a getValue in your example?
This is my data format.
I just added a spinner to the top of the screen. For now I am using an entered list of elements.
I setup a spinner from your tutorial.
Now I am trying to populate the rows of data. I thought I would at least get the first row with data from the getValue.
why would I add value to label vs text box?
how can I look at the json?
in C or cobol I would debug with lots of print statements to visualize what is happening
Is Label1 the selection of which type?
The Label2 is the display area for the bottom of the screen? If the database has more data then will fit on screen?
Thank you.
I just went to the library to get a App Inventor book but it does not even mention Project Bucket. All the examples in the book are creating Chat, photos and a bouncing ball app.
Should I just change to Visual Studio or something different.
I am going to go back to the beginning of this topic and repeat step by step.
I have the "last" tag piece and if I press the "Recent" button, I can fill the first screen. The button to clear the first screen works.
The Data or History button is where I am stuck. I want it to select which parameter (could be 8 different buttons, or a spinner). Then under that, fill the screen with rows of prior values saved, showing date,time, value. At this point, I believe my issue is I am getting the "Parent" level -Salinity which does not have a value. Under it, are the rows of data (date, time, value). How in blocks do I step down that level? Should I change the structure to have parameter & date & time as the tag or key?
When you say "can of course call back the whole lot" - this is what I am trying to do. Perhaps then filter it?
TIMAI2, would I be better to not use anything in projectBucket? I have been reading other topics that talk about projectBucket and in several you suggest it can be left blank, but if done so, it needs to be blank everywhere?