2014년 12월 7일 일요일

Expecting Call TinyDB3.clear all to clear DB3 only but it does clear DB1 as well

Problem : I need List 1 to be persistent forever and List 2 to be persistent until it is deleted.
Details :
1. Screen 1, List 1, DB1.
2. Data is added to each item of list1.  Then using DB2 each item with its data is transfered to Screen 2.
3. In Screen 2 a new list2 is cummulated in DB3.
4. When I delete DB3, unintentionally DB1 is gone.

Any ideas? Thank You.



You can only have ONE TinyDB database per app.  Regardless of what you call them, or how many screens you have a TinyDB on, they ALL reference the SAME database.

So, if you have a TinyDB1, TinyDB2 and a TinyDB3, they all reference the same database... You can't have multiples.  You're probably overwriting records...



Thank You, your answer helped. I realized that to delete only part of the data, tags should be used.


댓글 없음:

댓글 쓰기