I need help please, how to write code for the enumerator should enter only by his assigned enumeration area
thank you
entering by own EA's
Re: entering by own EA's
Hi,
You can use a file for assignation. In that file will be indicated who works where.
In the menu with the interviewer code (or team code), you will check that he is working or no in the indicated EA.
You can use a file for assignation. In that file will be indicated who works where.
In the menu with the interviewer code (or team code), you will check that he is working or no in the indicated EA.
Re: entering by own EA's
A straightforward way to do assignments is to use an assignments lookup file with each interviewer and their assignment.
Now, if you know the region and EA, you can call loadcase() to get the staff code:
Code: Select all
Region ID | EA ID | Staff Code
01 | 01 | 0001
02 | 02 | 0002
if loadcase(ASSIGNMENT_DICT, REGION, EA) then
// assignment is loaded in memory
endif;
If you know the staff code, you can loop through the assignments looking for the staff code with a forcase:// assignment is loaded in memory
endif;
forcase ASSIGNMENT_DICT where A_STAFF_CODE = STAFF_CODE do
// assignment is loaded in memory
break;
endfor;
If you take a look at the examples that are installed with CSPro there is an application, CAPI Census which makes use of assignments. However, I will warn you that things can get complicated quickly.// assignment is loaded in memory
break;
endfor;