Displaying occurrence number on multiply occurring form

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
simono101
Posts: 2
Joined: July 2nd, 2012, 5:31 am

Displaying occurrence number on multiply occurring form

Post by simono101 »

Dear all,
At the start of my data entry form I use a roster to list all the members of a household. I then use multiply occurring forms so as not to clutter the page, so each form is repeated for each member of the household. Is there some way to include a field which indicates which occurrence is being filled in for a form? E.g. If I have 5 people on my roster, I expect the next form to repeat 5 times. Is there some way I can use the line number I enter for each person in my roster to appear in subsequent forms?

Many thanks,

Simon
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Displaying occurrence number on multiply occurring form

Post by Gregory Martin »

There are a number of ways to do this. One thing that you might have missed is that CSEntry (the data entry program) shows the occurrence number at the bottom of the screen in the status bar (see below for an image of this).

Another option is to enable CAPI mode and to add informative text in the CAPI area that is meant for the keyers. See attached for an example of this.
Attachments
rosterList.zip
(2.66 KiB) Downloaded 537 times
occs.PNG
occs.PNG (1.06 KiB) Viewed 8061 times
khurshid.arshad
Posts: 571
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan

Re: Displaying occurrence number on multiply occurring form

Post by khurshid.arshad »

Dear

You have 5 HH members in roster and you want to enter only 5 person in education form. If it is, then use this syntex. Write this syntex in the last field of each form

PROC Lastfield

numeric counthhh; //create dummy variable


countHHH = count (SR); //variable name from roster (sr)

If curocc()= countHHH then

errmsg ("Now your record is equal to roster %d", count(edusr)); ///variable name "edusr" from second form which is eduction
endgroup;
else
endif;

arshad
khurshid.arshad
Posts: 571
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan

Re: Displaying occurrence number on multiply occurring form

Post by khurshid.arshad »

Dear

If you want control sequence number.


numeric Currentlinenumber;

if curocc(linenumber)=1 then

if linenumber<>1 then
errmsg("Your starting number is not 1");
reenter;
else
endif;


else
Currentlinenumber=Curocc(linenumber);

if Currentlinenumber<>linenumberthen
errmsg("Wrong Sequence number");
reenter;

else
endif

endif;
Post Reply