Hi all
I was testing the replication edit of windev with android.
I make it work somehow a replication with two or more devices to the server without affecting the information of my server, I do really need to put some parameters of my tables to make this work the parameters must be set it on the replic edit program of windev mobile 23.
The first time I set up my tables with replic edit and then execute my code it works just fine. the ID for obvious reasons it will increase dramastically, my two devices will work just fine but ONLY if I execute the code of replication first to set the IDs of the tables.
Now this is the issue I have, first I install my app with 5 tables, those tables are linked with my replic edit on my server the talbes have parameters, the program already execute the code replic edit provies me before that the app add data and send it through the replication to my server. Now I want to add more tables on my replication, then I add it, I set everything even with parameters, I compile, then create my apk, with that I install it on my device. Then I execute my code of replication, with that done I go to my window and add data, the ID of my table won't increase for some reason (weird), when I'm finish adding data I go to my button to execute the code of my replication, the replication it's done but my data of my table won't go to the server.
Now this is the part of the solution I found but I don't like: I uninstall the app then install it, I execute the code of the replication before that I add data to all of my tables, when I'm finish I execute the code of the replication and then all of my tables even the new ones will send the data to my server.
I can't say to the user "no just uninstall the app and install it again, with that it will work" I just I can't they have important data on the device, sure it will be on the server but then again every update I will launch that include new tables the user will be uninstalling and installing, so this is not good at all.
I send a message to PCSoft support if they know something about it, but I want to know if someone have the same problem as mine and a solution or give ideas, I don't know what to do....
The only idea I have it's create a new replic edit for my news tables but that's insane, imagen I have 5 tables the first time I launch my app to the user, then I will updated it and I need to add more tables, and I will get 20 new tables for new functions yes they will be in another replic edit, but then again when I updated it again and add new tables the I will have 3 replic files for the same project, that makes no sense at all...
I will test it on iOS just to see what happen, but for now this is only on Android
Thanks!
-- Best Regards ARV |