Add to list & tinydb


#1

hi to all

i have a problem.

i want make a difussion list of mails, i have different textbox, for each textbox there are a checkbox, that check if there are a mail wrote.

after the mails are write, i add these mails to the list, after the list to tinydb.

in an other block, i retrieve these mails from the list, but not work

somebody can help me?

thanks


#2

When and where are you calling your “mails” procedure?


#3

Hi ken

on event initialize

Captura


#4

the Idea is put the content of the list in the textbox’s when the screen load, if the list is empty, leave in blanck until the list have data.

Thanks


#5

Do you load mails with the TinyDB data?
If not, mails is an empty list at initialization.


#6

hi
i dont know how do it¡¡

the first part is ok? save the mails in the list & tinydb?


#7

In Screen.Initialize you need to read from the TinyDB


#8

i did this, but not work… i get an error


#9

what about using a “create empty list” block rather than an empty text block in the valueIfTagNotThere socket?
Taifun


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


#10

hi Taifun
Finally i can do it, using tinydb for each textbox.

thanks