Add occurrence label in a blank roster

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
manishcspro
Posts: 67
Joined: June 26th, 2017, 2:15 pm

Add occurrence label in a blank roster

Post 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.
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Add occurrence label in a blank roster

Post 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;
Post Reply