using getocclabel() in a roster
Posted: August 3rd, 2016, 3:54 pm
Hi,
I have used getocclabel() in a roster to capture the occurrence label and display it the CAPI text box, but sometimes it displays values for the previous occurrence if I decide to move back through the roster. So if my roster "SECTION_A" had a list of household items such as 1=chairs, 2=tables, 3=lamps, then by writing itemname=getocclabel(SECTION_A) I am able to display the questions "How many %itemname% do you own?". For the first occurrence it displays "How many chairs do you own?" and for the second "How many tables do you own?", etc.
However if I decide to move back using the left arrow key to correct a response in the previous row/occurrence, the occurrence label does not get updated and shows the occurrence label from the most recent occurrence. Obviously this can cause a lot of confusion in a big roster, where I am going back to change one value but can't orient myself in the table because of the incorrect label. Is there a way to fix it? I have tried storing the occurrence label during the onfocus/killfocus procedures but that causes a host of other problems. I am using the program in operator controlled mode.
M
I have used getocclabel() in a roster to capture the occurrence label and display it the CAPI text box, but sometimes it displays values for the previous occurrence if I decide to move back through the roster. So if my roster "SECTION_A" had a list of household items such as 1=chairs, 2=tables, 3=lamps, then by writing itemname=getocclabel(SECTION_A) I am able to display the questions "How many %itemname% do you own?". For the first occurrence it displays "How many chairs do you own?" and for the second "How many tables do you own?", etc.
However if I decide to move back using the left arrow key to correct a response in the previous row/occurrence, the occurrence label does not get updated and shows the occurrence label from the most recent occurrence. Obviously this can cause a lot of confusion in a big roster, where I am going back to change one value but can't orient myself in the table because of the incorrect label. Is there a way to fix it? I have tried storing the occurrence label during the onfocus/killfocus procedures but that causes a host of other problems. I am using the program in operator controlled mode.
M