Page 1 of 1

Making the survey return to the menu

Posted: February 6th, 2019, 7:04 am
by Bhupender11
Dear CSpro team,

How can I make the survey return to the menu when i call another survey from this menu.
When i call another survey from menu app then menu app automatically close.
For next case I start menu app again.
Is there is any option by which menu app remains open when we call another survey from this menu app.

Re: Making the survey return to the menu

Posted: February 6th, 2019, 2:21 pm
by htuser
Dear Bhupender11,
It's very simple. You must add OnExit on the pff of each application launched by the menu, this with path to the menu.
On the Pff editor, add On Exit PFF.
You can do it dynamically using filewrite:

Code: Select all

filewrite(outputFile,"[Parameters]");
filewrite(outputFile,"OnExit=.\....menu.pff");
I was talking with the Developer Team to add also OnExit inside Cspro logic
But Greg give us a way to open another application inside logic with Execpff function.
Please see this: http://www.csprousers.org/forum/viewtopic.php?t=2565

Best Regards,

Re: Making the survey return to the menu

Posted: February 7th, 2019, 12:01 am
by Bhupender11
Thanks htuser it works fine.