I want to add occurrence labels of all the rows in a blank roster automatically as the cursor reaches at first row.
Currently i have created application to show occurence label based of current occurrence to get label based on item code.
but when the cursor moves forward the whole roster refreshes on every tab or enter press.
Please help me for a better way to display occurrence label without roster refreshing.
Thanks.
Add occurrence label in a blank roster
Re: Add occurrence label in a blank roster
I'm not certain what is causing the refresh without looking at your logic. However, try setting the occurrences labels in a single shot in the roster or forms.
PROC ANIMAL_ROSTER
preproc
list string animals = "Chameleon", "Fosa", "Lemur";
do numeric i = 1 while i <= maxocc(ANIMAL_ROSTER)
setocclabel(ANIMAL_ROSTER(i), animals(i));
enddo;
preproc
list string animals = "Chameleon", "Fosa", "Lemur";
do numeric i = 1 while i <= maxocc(ANIMAL_ROSTER)
setocclabel(ANIMAL_ROSTER(i), animals(i));
enddo;