Page 1 of 1

verify mode detection

Posted: September 27th, 2022, 7:05 pm
by AriSilva
Hi folks,
I´m starting a new csEntry application to key entry from paper, for questionnaires being applied in difficult areas.
The questionnaires will be key entered and verified
I would like to have a field where I could store the state of the questionnaire, like:
1 - incomplete (not fully entered)
2 - complete (fully entered)
3 - verified (fully entered and verified)
How can I have access to the "Modes of Operation" in the data entry program? So we could have frequencies of this field, and have statistics of what is being accomplished.
Or is there a better solution?
Best
Ari

Re: verify mode detection

Posted: September 28th, 2022, 6:37 am
by Gregory Martin
There are functions, ispartial and isverified, that might help you:

https://www.csprousers.org/help/CSPro/i ... ction.html
https://www.csprousers.org/help/CSPro/i ... ction.html

Do you need more than what these provide?

Re: verify mode detection

Posted: September 29th, 2022, 1:15 pm
by AriSilva
Thanks, Greg,
The isVerified function might help, but in order to use it to assign a variable in the questionaire depending on its value I would need a batch program to execute the function and assign the variable accordingly. Like

...
if isVerified(dictName) then
varStatus = 3;
endif;

Or, can I have this instruccions in the data entry program itself? For example, in a postproc of the last field in the questoinaire? Which means, at what point this flag is set in the case? After finishing the verification?
Best
Ari

Re: verify mode detection

Posted: September 29th, 2022, 2:44 pm
by Gregory Martin
You can only use isverified on external dictionaries, so you can't do it from your main data entry program. If you want to set a flag at the end of your program, you can use demode:
if demode() = verify then
   
// set flag
endif;

Re: verify mode detection

Posted: October 10th, 2022, 10:17 am
by AriSilva
Great,
This is exactly what I needed!
May I suggest a see also demode in the isverified help?
Thanks
Ari

Re: verify mode detection

Posted: October 14th, 2022, 4:26 pm
by sherrell
I've updated the helps to explain this. Thanks for the suggestion Ari.

Best,
Sherrell