Support Forum

Ask questions and get help from MobileTogether experts.
MobileTogether Product Information
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
jwatt222  
#1 Posted : Tuesday, June 28, 2016 12:42:10 PM(UTC)
jwatt222

Rank: Advanced Member

Groups: Registered
Joined: 5/23/2016(UTC)
Posts: 58
United States
Location: Virginia

Thanks: 10 times
I have forms that are completed by each client device the results are added to the database. I want to store the database on the client device so that the original database is left clean on the server for the next client to use.

I have set the database page sources to "client only" but when testing I get the cannot execute on client error. I try setting them to persist on client and then the solution runs but stores the data on the database on the server.

I am not saving the data until I return to the main menu after completing the solutions. and I have the control actions set as in the attached image for each database.

What a I doing wrong?

Thanks,

jwatt222 attached the following image(s):
databases.PNG
bbv  
#2 Posted : Tuesday, June 28, 2016 12:55:02 PM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 319

Was thanked: 49 time(s) in 49 post(s)
You cannot store a database on a client device, because client devices do not run databases.

But you can save data in XML trees instead and either save and load them explicitly on client device or use the persistent flag for implicit saving.

By the way, if the amount of data is not too big (and form data is usually very small), XML trees are much quicker and more efficient in handling such data.
thanks 1 user thanked bbv for this useful post.
jwatt222 on 6/28/2016(UTC)
jwatt222  
#3 Posted : Tuesday, June 28, 2016 3:20:59 PM(UTC)
jwatt222

Rank: Advanced Member

Groups: Registered
Joined: 5/23/2016(UTC)
Posts: 58
United States
Location: Virginia

Thanks: 10 times
I removed the saves to the databases since they were what was obviously saving it to the database on the server. I set the databases to persist on client. I ran another test and this time the information did not save to my server but after waiting a while I went back in and found that all of of the data is still on the forms. This is good for one of my forms because once it is filled out, I want it to hold the information for the next run. I assume that this is what persist on client does.

Question, is there a certain period of time before i can go back in to find the other forms clear or do I need to remove persist on client from the forms that I want to be clear for the next run? and if I do this, would there be a way to recall that information if I wanted to view an old run?

Thanks,
bbv  
#4 Posted : Wednesday, June 29, 2016 10:31:10 AM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 319

Was thanked: 49 time(s) in 49 post(s)
Everything is completely up to you - you have all commands available to load, save, reset, etc.
thanks 1 user thanked bbv for this useful post.
jwatt222 on 6/29/2016(UTC)
Users browsing this topic
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.