How do you share history details (table) file from Tiny DB?

Hi All,
Appreciate your guidance how to share the history details table that is being saved in the Tiny DB.

Attached is the screenshot of my code. When the i click the share button (Button1), a empty file.txt is shared. The data in the history details table from tiny DB is not found in the file.txt file

Thank you!

AppendToFile doesn't work well in a loop.

There is a File completion event that has to trigger between one AppendToFile and the next.

There is a way to build the entire text from a TinyDB instance using advanced list and dictionary blocks, to allow writing the entire file in one shot.

There is also a Sharing block that will accept the text directly, in case you want to avoid file system hassles entirely.



blocks (1)

(Draggable)
TinyDB_Share.aia (2.5 KB)

Hi sorry forgot to mention that the desired output is a table with columns (date , type, amount ) and rows (income and expenses as added by user)
Appreciate your guidance on how to share the above desired output (table) as per screenshot below

Thank you!

Regards,
Timothy Woo

Current output:

A CSV table is a common text format for a table when exporting and importing tables.

Which of the tutorials in the above list do i need to understand and apply in order to arrive at the desired output? and how do i start? (i.e do i reuse the advanced list and dictionary blocks method above or use another method)

Thank you!

It may be that you need to absorb the information provided in the faq, and once you have a good understanding of working with lists and dictionaries, apply the best, or your own, method for your particular requirement.

I recommend mastering the Introductory section of the Lists FAQ then telling us to what program you were going to share the table .