Synchronization with PFF file

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Forum rules
New release: CSPro 8.0
Post Reply
munirmdee1
Posts: 74
Joined: August 17th, 2015, 9:32 am
Location: Dar es Salaam, Tanzania

Synchronization with PFF file

Post by munirmdee1 »

Hi all,

I have an application, in which I put two .pff file, one for adding new questionnaire, and the second one is for editing the questionnaire. Now I want to create another pff file to perform a synchronization. writting a syscconnect through userbar button its possible, but the button is not visible until you open a new qeustionnaire or or edit, befor that userbar is not visible. Thats why I want to create a .pff file for doing a sychronization, is it possible ?how can I do that?

Thanks
Munir Mdee
Software Programmer
National Bureau of Statistic (NBS)
Jakaya Kikwete Road,
P.O.Box 2683,
Dodoma,TANZANIA
Mob: +255 755 740090
Email: munir.mdee@nbs.go.tz
munirmdee@gmail.com
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Synchronization with PFF file

Post by Gregory Martin »

What if you add something to the Parameters section like of the PFF file:

PerformSync=1

Then in your program, in the program preproc (..._FF), you can do this:
PROC MY_PROGRAM_FF

    if sysparm("PerformSync") = "1" then
        // execute my sync
        stop(1);
    endif;
Post Reply