Page 1 of 1

onoccchange does not work backward

Posted: June 5th, 2017, 7:33 am
by szso
Hi,
I have a roster and I put the following code in the group section of that roster to let me know once I go from one occurence to another occurence

onoccchange
errmsg("current occurence is : %d", curocc());

The message apprears when I go from occurence 1 to occurence 2 and so on. But when I move backward clicking in some field in the middle of the previous occurence the message does not appears meaning it still consider currocc is 2. I solve the problem by putting a preproc on each field capturing the current occurence but I hope the function would work in next version.

Best

Re: onoccchange does not work backward

Posted: June 5th, 2017, 8:32 am
by josh
Yes, I have seen issues with onoccchange not always triggering as well. We will look into it.

Re: onoccchange does not work backward

Posted: June 5th, 2017, 11:00 am
by Gregory Martin
Are you running your application in operator-controlled mode or system-controlled mode?

Re: onoccchange does not work backward

Posted: June 6th, 2017, 1:11 pm
by szso
I always use the system control mode as it is more powerful.