How can identify the table of tinydb

  1. HOW CAN IDENTIFY THE TABLE OF TINYDB?

  2. How to export the selected data as .csv format.

Example. Grade 1, Grade 2, Grade 3
I would like to happen. When i select Grade 1, will export all Grade 1 in sdcard as .csv. Not included the Grade 2 & Grade 3.

Thank you!:pray:

there is no such thing as a table of TinyDB
you can have several namespaces and in each namespace you can have tag/value pairs
see also the documentation http://ai2.appinventor.mit.edu/reference/components/storage.html#TinyDB
see also this tutorial TinyDB tutorial by Stephen

one solution is to use only one TinyDB and one tag for each grade. In that tag then store all the information as list of lists for a specific grade

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

Hello Alstech

Is your App just for your own personal use or do you intend to distribute it via Google Play Store? If the latter, your App cannot access an sdcard (recent Google Security Measures). It can access the App's Private Directory (aka Assets, populated at design time) and the App Specific Directory, a folder on device memory (aka virtual sd).