Add occurrence label in a blank roster

Discussions about CSEntry
Post Reply
manishcspro
Posts: 29
Joined: June 26th, 2017, 2:15 pm

Add occurrence label in a blank roster

Post by manishcspro » October 18th, 2020, 3:26 am

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.

aaronw
Posts: 334
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Add occurrence label in a blank roster

Post by aaronw » October 19th, 2020, 10:59 am

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;

Post Reply