Page 1 of 1

Add occurrence label in a blank roster

Posted: October 18th, 2020, 3:26 am
by manishcspro
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.

Re: Add occurrence label in a blank roster

Posted: October 19th, 2020, 10:59 am
by aaronw
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;