Hi CSPro Team !!!!
For my project, I want to combine data synchronization on Dropbox and updates download functions. The problem is, each time the interviewer synchronize data, the program downloads the applications from server as if there is a change on these applications.
So, I would like to know how to write the program so that it checks on the server, if the applications have been changed compared to the applications on the Tablet before downloading updates, if not synchronize only the data and then exit ?
Thanks you.
Synchronize updates if there is novelties on the server
Forum rules
New release: CSPro 8.0
New release: CSPro 8.0
Synchronize updates if there is novelties on the server
Sincerely yours !
Re: Synchronize updates if there is novelties on the server
In CSPro 7.4 you can use the syncapp() (https://www.csprousers.org/help/CSPro/s ... ction.html) function to update the application from the server only when it has changed. Note that it will show a message that it is connecting to the server and getting the application but if the application has not changed on the server then all it is doing is checking to see if the server has an update. It does not download anything that is not new.
In earlier versions of CSPro if you are using syncfile() to download the application files (pen and pff) they also only download the files if the server version is different from the local version. As with the above, it does show a message that it is getting the files but it is only checking to see if they are different.
In earlier versions of CSPro if you are using syncfile() to download the application files (pen and pff) they also only download the files if the server version is different from the local version. As with the above, it does show a message that it is getting the files but it is only checking to see if they are different.
Re: Synchronize updates if there is novelties on the server
Thank you mister Josh !!
I just tried the syncApp function, I can't do it. I put my application packages installed with Deploy Applications tool on Dropbox, I also copies the same file deployed on my mobile device. when i try to synchronize to download updates, I'm recovering this message
I just tried the syncApp function, I can't do it. I put my application packages installed with Deploy Applications tool on Dropbox, I also copies the same file deployed on my mobile device. when i try to synchronize to download updates, I'm recovering this message
- Attachments
-
- Screenshot_20200531-110922.png (45.64 KiB) Viewed 3671 times
Sincerely yours !
Re: Synchronize updates if there is novelties on the server
I realized that I had not correctly deployed the application. Instead of deploying to the server over the Internet, I did it locally and I loaded the folder obtained on the server.Boni wrote: ↑May 31st, 2020, 6:37 am Thank you mister Josh !!
I just tried the syncApp function, I can't do it. I put my application packages installed with Deploy Applications tool on Dropbox, I also copies the same file deployed on my mobile device. when i try to synchronize to download updates, I'm recovering this message
But my problem is still not set. Trying to deploy the application on server over the internet, it doesn't work, I get this message. I don't understand anything.
- Attachments
-
- Capture.PNG (29.57 KiB) Viewed 3663 times
Sincerely yours !
Re: Synchronize updates if there is novelties on the server
Please check in the folder C:\Program Files (x86)\CSPro 7.4 to see if you can find the file DropboxAuth.exe. If it is not there that would explain the error you are getting. If it is not there please check if your antivirus program might have removed the file or placed it in a quarentine. If the file is there please try running it by double clicking on it. If it runs it should launch the web browser and show the Dropbox login. If it does not please let us know if you get any errors.
Re: Synchronize updates if there is novelties on the server
The file exists in the specified folder. When I try running it by double clicking, it doesn't run to launch the web browser, I rather receive failure message.
Thanks.
Thanks.
- Attachments
-
- dropb.PNG (90.47 KiB) Viewed 3631 times
Sincerely yours !
Re: Synchronize updates if there is novelties on the server
The error message in the back is the one that might be useful. Can you move the front dialog box out of the way and post the screenshot of the error message in the back?
Also what version of Windows are you using? What is your default web browser?
Finally, make sure that you have a recent version of the .NET framework. Version 4.7.2 or above. You can download installers from https://dotnet.microsoft.com/download/dotnet-framework
Also what version of Windows are you using? What is your default web browser?
Finally, make sure that you have a recent version of the .NET framework. Version 4.7.2 or above. You can download installers from https://dotnet.microsoft.com/download/dotnet-framework
Re: Synchronize updates if there is novelties on the server
Dear Josh ! It works now, it was the web browser problem, if not, I have version 4.8 of .NET framework.
Thank you very much.
I sent you a project by email, for another problem. Thanks to look over the project.
Thank you very much.
I sent you a project by email, for another problem. Thanks to look over the project.
Sincerely yours !
Re: Synchronize updates if there is novelties on the server
Glad to hear it is working. What did you do to fix the problem with the web browser? That will help anyone else who encounters the same error.
Re: Synchronize updates if there is novelties on the server
As you suggested, I checked my default web browser, it was "Internet Explorer" which was saved as default web browser, so I changed it by "Google Chrome". It work correctly now. Thanks
Sincerely yours !