Can you put logic at the end of the survey to synchronize?

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Forum rules
New release: CSPro 8.0
Post Reply
juan pablo
Posts: 30
Joined: July 27th, 2017, 4:02 pm

Can you put logic at the end of the survey to synchronize?

Post by juan pablo »

Good afternoon everyone

My question is the following:
There is a way to put at the end of each case, the question do you want to synchronize?
Yes or no
and through logic can be synchronized with dropbox every time the interviewer answers YES

If that's possible, could you share the logic

thank you !!!




Juan Pablo
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Can you put logic at the end of the survey to synchronize?

Post by josh »

You can't synchronize the main data file from logic from inside the main application. That is a limitation of CSPro. You would have to do this using a menu program. See the "synchronization from logic" example application in the examples folder. You could modify this program so that every time you return to the menu program you call the synchronization function.
juan pablo
Posts: 30
Joined: July 27th, 2017, 4:02 pm

Re: Can you put logic at the end of the survey to synchronize?

Post by juan pablo »

thanks Josh
I will proceed to review the examples you mention to achieve what I need
juan pablo
Posts: 30
Joined: July 27th, 2017, 4:02 pm

Re: Can you put logic at the end of the survey to synchronize?

Post by juan pablo »

Hello dear josh
I'm testing what is suggested by the "Synchronization in Logic"
I made the changes according to a test data entry and the options I need.
I work almost 100%, what I need is that when I finish a case and back I go back to the menu screen, as it does in the original "Synchronization in Logic" and also see the way to synchronize automatically when returning to the menu.
I share the data entry so you can see it and can guide me what is my mistake

regards

Juan Pablo
Attachments
LABORATORIO CSPRO.rar
(19.2 KiB) Downloaded 297 times
khurshid.arshad
Posts: 571
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan

Re: Can you put logic at the end of the survey to synchronize?

Post by khurshid.arshad »

Dear Juan;

There are two ways to open your login window after finish the data entry.

1. Open Your ENCUESTA.pff file in a Notepad and place this syntax in the end
Parameter
OnExit=..\Menu\Menu.pff

save this file and run your application through the menu. Now you will be on your menu screen after finish your entry.


2. Write your pff file in your menu file and set the Parameter. In this case, you do not need to edit the pff file. For reference please see attached application.
Best.
A.
juan pablo
Posts: 30
Joined: July 27th, 2017, 4:02 pm

Re: Can you put logic at the end of the survey to synchronize?

Post by juan pablo »

Thank you very much for your help. :)
add the syntax as you mentioned and already return to the menu after closing the survey.
now my other question is if you can make each time you leave the survey and return to the menu automatically synchronize
Will this be possible? :?:
if so, could you share the syntax please
khurshid.arshad
Posts: 571
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan

Re: Can you put logic at the end of the survey to synchronize?

Post by khurshid.arshad »

Sorry, i have missed your application in my last post. Please see attached application. Now you can synchronize your data when you get back on Menu. I don't think so it will be a good practice.
Best.
a.
Attachments
LABORATORIO CSPRO.rar
(28.06 KiB) Downloaded 315 times
juan pablo
Posts: 30
Joined: July 27th, 2017, 4:02 pm

Re: Can you put logic at the end of the survey to synchronize?

Post by juan pablo »

Thanks for the syntax.
I'm testing the data and I get this message

I enter the menu and give it a survey and I open the sale of the survey but in another sale I get that message that in turn begins to synchronize automatically
Attachments
captura.jpg
captura.jpg (101.46 KiB) Viewed 6969 times
juan pablo
Posts: 30
Joined: July 27th, 2017, 4:02 pm

Re: Can you put logic at the end of the survey to synchronize?

Post by juan pablo »

then I give it ok
start to synchronize
Attachments
captura 2.jpg
captura 2.jpg (105.6 KiB) Viewed 6968 times
Post Reply