verify mode detection

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

verify mode detection

Post 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
Best
Ari
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: verify mode detection

Post 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?
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Re: verify mode detection

Post 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
Best
Ari
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: verify mode detection

Post 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;
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Re: verify mode detection

Post by AriSilva »

Great,
This is exactly what I needed!
May I suggest a see also demode in the isverified help?
Thanks
Ari
Best
Ari
sherrell
Posts: 397
Joined: April 2nd, 2014, 9:16 pm
Location: Washington, DC

Re: verify mode detection

Post by sherrell »

I've updated the helps to explain this. Thanks for the suggestion Ari.

Best,
Sherrell
Post Reply