Application exit problem

I have made a app which has a form and it saves and output data on next screen in list view, it works well when i close the app and open the app but if i close the app by 'recent application button' and then open the app back and add one more data it overwrites it all .
Any fix
Thank U for reading
Bima (1).aia (25.6 KB)

Are you storing your data in TinyDB?

1 Like

yes i am .

Bima (1).aia (25.6 KB)

Does this work?
I made a few changes

1 Like

No it didn't worked

image

Screen 1 blocks

Data Blocks

I think all the changes did not reflect, try this out

1 Like

The mistake here was, you were initializing your variable to empty list everytime, and storing the variable value in TinyDB, so the data was overwritten everytime you opened the screen

1 Like

Now it see not even saving data

image

Try swapping the position of store value and add item to list,
replace create empty list in the add item list to an empty string

1 Like

Hello Sir, how do you think it is a mistake, whereas many have proven it is not a mistake.

1 Like

Sorry Mr.@Alaqmar_Bohori, I think you have a strange logic. :wink:

1 Like

nothing sovled the problem

Could you share your updated code?

1 Like

it was exactly as you said and it didnt worked so i changed it back to the orignal

Okay Now I have resolved your problem,
please see your project which I have fixed the logic :
Bima.aia (26.0 KB)
:+1: :smiley: :+1:

1 Like

Thank U Alaqmar_Bohori and Salman_Dev the last aia file worked

Second Update

Bima.aia (26.7 KB)

What's new

  • Fix This Problem :
  • Fix the problem when you delete the profile and go back to screen1 and add a new profile, it still keeps the data you deleted before.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.