Page 1 of 1

Level Of Execution In Data Entry Application

Posted: February 24th, 2016, 3:51 am
by munirmdee1
Hi all,

I understand levels of execution in CSPro Data Entry Application, but I have a little concern. My concern is I want to close the application after completing entering data, for example I have a househole questionnaire, the last field/item is number of members in the household (ie NUM_MEM). So after user enter a number into that field it asks to confirm the case before it writes. I want after confirming the writing of a case an application should close. Now where to put the logic for closing the application after accepting the case? Is it at the Postproc of a Dictionary, or the last item (NUM_MEM) or of the Level (questionnaire)?

Thanks in advance...

Re: Level Of Execution In Data Entry Application

Posted: February 24th, 2016, 6:54 am
by josh
From the help topic on the stop function:
In a data entry application, if the stop function is executed in the Postproc of the first (highest) level then the data for the case is saved. Otherwise, any data entered for the current case is lost. If you want to avoid losing data, you should include a savepartial function just before the stop function (see example below).
ySo You can put the call to stop() in the postproc of the first level (the questionnaire) and it will close the application after saving the case.