Page 1 of 1

Synchronization with PFF file

Posted: October 22nd, 2018, 1:49 pm
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

Re: Synchronization with PFF file

Posted: October 22nd, 2018, 5:51 pm
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;