using Onfocus in roster

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
vanndy
Posts: 30
Joined: May 10th, 2012, 10:45 pm

using Onfocus in roster

Post by vanndy »

Hello,

I have one entry application that have two waves.
in wave 1 I did entry already. then in wave 2 I need to enter again;

In wave 2 I have change code in roster by using Onfocus to clear the old data for new entry.
I'm using this below code:
PROC CHANNEL_U_EM000
PROC UEM_A
onfocus
if curocc($)<=24 then
UEM_A(curocc($))=notappl;
UEM_b(curocc($))=notappl;
endif;


I used this code in 4 rosters(1 roster with 24 occur, the same flow). There is a problem when I enter in roster 1, roster 2 first occur(not yet complete 24 occur), then It skipped automatically to roster 3 but sometimes It didn't skip. I wonder why it's not remain the same while I'm using the same code, or my code didn't work well. please help me.
Note: in wave 1 I used CSPro 4.0, in wave 2 I used CSPro 4.1

Best regards,

Vanndy
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: using Onfocus in roster

Post by Gregory Martin »

Changing from CSPro 4.0 to 4.1 should not cause any problems.

Is the problem that you are facing due to your onfocus code, or is it due to the fact that, in modify mode, CSEntry automatically assumes that the total number of occurrences entered is the number entered in the first round of data entry? For more information, see this:

http://csprousers.org/forum/viewtopic.php?f=1&t=461

Is CSEntry automatically skipping to roster 3 because it is reaching the end of the occurrences entered during the first wave? You can use the insert function to add occurrences, or you can have the operator do it as detailed in the above post.
Post Reply