execpff() after EndLevel

Discussions about creating CAPI applications to run on Android devices
Marc
Posts: 8
Joined: February 20th, 2018, 3:02 am

execpff() after EndLevel

Postby Marc » February 22nd, 2018, 1:32 am

Hi all,

I feel like I'm missing something simple here and have myself running in circles. How do I

In my menu system (pff01) I call my questionnaire (pff02). In pff02 I capture the answers to the questions for the case I wanted and use "endlevel" in the postproc of questions to end the questionnaire at the appropriate time and get an "Accept case".

My question is, where do i put my execpff logic to call back and reopen my menu? (pff01). I tried putting the execpff() in function OnStop() but this doesn't seem to be working.

Right now, the pff02 attempts to re-add the case once it is accepted and i can't find where to place my execpff() to redirect back to the menu instead of rerunning pff02.

Sorry for the shorthand post but I am running out of office at end of day now. Hope you can understand my question.

Thank you,
Marc

Marc
Posts: 8
Joined: February 20th, 2018, 3:02 am

Re: execpff() after EndLevel

Postby Marc » February 22nd, 2018, 3:14 am

I figured it out thanks to an earlier post.

I was able to identify where the Accept Case returned to, and put my call to Stop(1) in the post proc of that Questionnaire. This was able to kill the survey portion and return to the menu.

http://csprousers.org/forum/viewtopic.php?t=1148

josh
Posts: 1687
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: execpff() after EndLevel

Postby josh » February 22nd, 2018, 7:32 am

There is an easier way to do this in CSPro 7.0 and above. You can add OnExit=<path to menu pff> in your pff2 which will automatically relaunch the menu program when pff2 finishes. You can see an example of a menu program that uses this here: http://teleyah.com/cspro/RwandaDec2017/ ... rcises.zip


Return to “Android”