Issue with loadcase function for user authentication in CSPro 8.0

Discussions about CSEntry
Post Reply
Rolyno
Posts: 12
Joined: February 19th, 2025, 3:44 am
Location: Cotonou

Issue with loadcase function for user authentication in CSPro 8.0

Post by Rolyno »

Hello everyone,

I am facing an issue with CSPro version 8.0. I want each enumerator to enter an ID and password before proceeding with the rest of the questionnaire.

To achieve this, I created an external dictionary using the Excel to CSPro option, which contains two variables: ID and Pass_word. Then, in the main dictionary (where I created the ID and password variables), I used the loadcase function as follows:

PROC MOT_DE_PASSE

if
loadcase(MOT_DICT, IDENTIFIANT, MOT_DE_PASSE) = 0 then
errmsg("The code is not valid for user %l", IDENTIFIANT);
reenter;
else
move to NUM_MENAGE;
endif;

However, this gives me the following error:


ERROR(5): 'MOT_DICT' is not a declared variable or is a misspelled dictionary entry
ERROR(8): PostProc clause expected

How can I fix this issue? Any help would be greatly appreciated.
Gregory Martin
Posts: 1883
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Issue with loadcase function for user authentication in CSPro 8.0

Post by Gregory Martin »

Did you add your dictionary, MOT_DICT, to your application as an external dictionary?

https://www.csprousers.org/help/CSPro/a ... ation.html

CSPro does not recognize the symbol MOT_DICT, so it likely has not been added to your application.
Rolyno
Posts: 12
Joined: February 19th, 2025, 3:44 am
Location: Cotonou

Re: Issue with loadcase function for user authentication in CSPro 8.0

Post by Rolyno »

Thank you Grégory Martin for your helpful responses! Your support really helped me solve my issue.
Post Reply