Updating app deletes cases on tablet

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
wimneel
Posts: 86
Joined: May 6th, 2017, 5:31 am

Updating app deletes cases on tablet

Post by wimneel »

A data entry app I made recently is behaving in a way I never saw before.
Every time the app is updated in CSEntry, all existing cases on the tablet are deleted.
I have no idea where to start looking for what causes this behaviour.
Can anybody help me?
etuser
Posts: 85
Joined: September 3rd, 2019, 5:57 am

Re: Updating app deletes cases on tablet

Post by etuser »

I think , the path which locate the .csdb file in the .pff file is not correct.
wimneel
Posts: 86
Joined: May 6th, 2017, 5:31 am

Re: Updating app deletes cases on tablet

Post by wimneel »

Hi. Thank you very much for your reply.
However, the paths in the .pff file are correct.
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Updating app deletes cases on tablet

Post by Gregory Martin »

Are only cases deleted, or also your programs? Are you updating the application, or removing it and installing it again?

We have never heard of only cases being deleted, but depending on how you update your application, the entire csentry folder may be removed by Android. See more here:

https://www.csprousers.org/posts/2021-0 ... id-os.html
wimneel
Posts: 86
Joined: May 6th, 2017, 5:31 am

Re: Updating app deletes cases on tablet

Post by wimneel »

The tablets have one more application installed, and that one is not deleted.
We are just updating the application, using the second option in the menu of the main screen "Update Installed Applications".
The tablets are as good as new and are using Android 12.
Arjun Brti
Posts: 49
Joined: October 15th, 2020, 3:40 am

Re: Updating app deletes cases on tablet

Post by Arjun Brti »

If you updating the app using "Deploy application", then followed the attached image steps and deploy the app and update the app on android.

Thank you.
Attachments
Deploy.png
Deploy.png (22.88 KiB) Viewed 3644 times
wimneel
Posts: 86
Joined: May 6th, 2017, 5:31 am

Re: Updating app deletes cases on tablet

Post by wimneel »

Sorry, but can I get a little more explanation?
What is in the .csdb file? I normally upload only external data files; the appname.csdb file is created automatically on the tablet (in the location defined in the .pff file).
And what does "remove - only on first install" do actually?
Arjun Brti
Posts: 49
Joined: October 15th, 2020, 3:40 am

Re: Updating app deletes cases on tablet

Post by Arjun Brti »

Generally, there are two types of data files in cspro ie MyData_file.TEXT and MyData_file.CSDB. CSBD file format is a special data file format of CSPro app. Both .TEXT and .CSBD data file holds your data. If you click on Remove it delete/removed your attached file under deploy box. If you check on the "Only on first time" it means deploy tool only installed the data file first time. And if you update the application it update the .pff and .pen files not your data file. If you not check on "only on first time" it replaced your data file each time while if you update the app.

The .CSDB data file under your android is the same data file which you gave while run your your app on window.
wimneel
Posts: 86
Joined: May 6th, 2017, 5:31 am

Re: Updating app deletes cases on tablet

Post by wimneel »

Thank you for the explanation.

But what happens if I do not upload any .csdb data file, but I have its path defined in the .pff file, like this:

InputData=.\Data\appname.csdb
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Updating app deletes cases on tablet

Post by Gregory Martin »

If the data file is not being overwritten during the deployment process, then you should not be losing any data on updates.

Try updating the application and then looking in your csentry directory to see if the data file--from before the update--is still present. Copy it to your machine and test if it has the correct cases (again, from before the update).

This will help us determine if it is CSEntry causing the bug, or if perhaps you have code in your program that is clearing the data.
Post Reply