Different behaviors using Windows and Android
Posted: March 16th, 2018, 9:57 am
Hi folks,
(I´m sorry for this post´s length but I think I need to describe in more detail what is happening).
My application has two instances, a menu (one ent and one apc) to choose some actions from the interviewer, and the interview itself (another ent and another apc), pretty much the same as in the Synchronization in Logic example.
It is not a household survey. Basically it will be used as a Satisfaction survey to evaluate some health centers all over the country.
It starts by the interviewer selecting one of the centers s/he has to work with, using a list of the centers in a support file.
Then s/he defines if the interviews will be short or long. That is, a short interview will ask very few questions, while the long one will ask all the questions in the questionnaire.
One of the options in the menu of course is to execute the interview.
When he chooses it the program generates a pff file (exactly as in the synchronization by logic example) and executes it.
When the interview finishes the control returns to the first (menu) program, and the operator has to choose one of the options again.
Besides the "execute an interview" option there are several others, like reports, synchronization to and from the server, change some specific parameters, etc.
Everything is working fine, but here comes the problem:
Every time the interview program finishes one interview, the control returns to the menu, for the operator to choose another option. That is good for the long interview, but if he is working with the short interviews I would like that the control stayed in the interview program, asking for a new interview automatically, instead of returning to the menu and the interviewer choosing to execute a new interview. I´m loosing too much time, not only closing the interview program, reloading the menu program, and then the operator having to select again to execute an interview.
What I do not understand is that, in windows, the program does exactly what I need, staying in the interview program, asking automatically for new interviews, but in Android it does not behave like that, returning to the menu program as soon as it finishes the interview (being long or short).
I´m unable to attach the pff file that is generated by the menu program to call the interview program (the form does not allow that), so I´m copying it at the end of this message. If this is not enough I can send the whole package, with some instructions to reproduce the problem.
Another piece of info that might help to clarify the problem is that at the last question of the short questionnaire I use an endlevel instruction, like
PROC U21_TIPO
if $ = 1 then
endlevel;
endif;
Best
Ari
Pff file (generated automatically):
--------
[Run Information]
Version=CSPro 7.0
AppType=Entry
Description=CRAS - Controle chamando entrevistas
[DataEntryInit]
ShowInApplicationListing=Hidden
StartMode=add;4
Lock=CaseListing
[Files]
Application=./CRAS_10_Entrevista.ent
InputData=./CRAS_10_Entrevista.csdb|CSPRODB
[ExternalFiles]
[Parameters]
OnExit=../50_Controle/CRAS_50_Controle.pff
PARM_CPF=03507017768
PARM_CRAS=33002002867
PARM_QUEST=4
PARM_MUNIC=3300209
PARM_DATA=20180316
PARM_HORA=095042
PARM_NOMECRAS='CRAS DO OUTEIRO'
PARM_TIPO=1
PARM_MENU=YES
(I´m sorry for this post´s length but I think I need to describe in more detail what is happening).
My application has two instances, a menu (one ent and one apc) to choose some actions from the interviewer, and the interview itself (another ent and another apc), pretty much the same as in the Synchronization in Logic example.
It is not a household survey. Basically it will be used as a Satisfaction survey to evaluate some health centers all over the country.
It starts by the interviewer selecting one of the centers s/he has to work with, using a list of the centers in a support file.
Then s/he defines if the interviews will be short or long. That is, a short interview will ask very few questions, while the long one will ask all the questions in the questionnaire.
One of the options in the menu of course is to execute the interview.
When he chooses it the program generates a pff file (exactly as in the synchronization by logic example) and executes it.
When the interview finishes the control returns to the first (menu) program, and the operator has to choose one of the options again.
Besides the "execute an interview" option there are several others, like reports, synchronization to and from the server, change some specific parameters, etc.
Everything is working fine, but here comes the problem:
Every time the interview program finishes one interview, the control returns to the menu, for the operator to choose another option. That is good for the long interview, but if he is working with the short interviews I would like that the control stayed in the interview program, asking for a new interview automatically, instead of returning to the menu and the interviewer choosing to execute a new interview. I´m loosing too much time, not only closing the interview program, reloading the menu program, and then the operator having to select again to execute an interview.
What I do not understand is that, in windows, the program does exactly what I need, staying in the interview program, asking automatically for new interviews, but in Android it does not behave like that, returning to the menu program as soon as it finishes the interview (being long or short).
I´m unable to attach the pff file that is generated by the menu program to call the interview program (the form does not allow that), so I´m copying it at the end of this message. If this is not enough I can send the whole package, with some instructions to reproduce the problem.
Another piece of info that might help to clarify the problem is that at the last question of the short questionnaire I use an endlevel instruction, like
PROC U21_TIPO
if $ = 1 then
endlevel;
endif;
Best
Ari
Pff file (generated automatically):
--------
[Run Information]
Version=CSPro 7.0
AppType=Entry
Description=CRAS - Controle chamando entrevistas
[DataEntryInit]
ShowInApplicationListing=Hidden
StartMode=add;4
Lock=CaseListing
[Files]
Application=./CRAS_10_Entrevista.ent
InputData=./CRAS_10_Entrevista.csdb|CSPRODB
[ExternalFiles]
[Parameters]
OnExit=../50_Controle/CRAS_50_Controle.pff
PARM_CPF=03507017768
PARM_CRAS=33002002867
PARM_QUEST=4
PARM_MUNIC=3300209
PARM_DATA=20180316
PARM_HORA=095042
PARM_NOMECRAS='CRAS DO OUTEIRO'
PARM_TIPO=1
PARM_MENU=YES