Page 1 of 1

skip roster row by protected

Posted: December 16th, 2013, 9:24 pm
by Ratha
Hi,

anyone know how to skip roster row by protected when enter (e.g. -8)

thanks

Ratha

Re: skip roster row by protected

Posted: December 17th, 2013, 3:41 am
by khurshid.arshad
Dear Ratha
Your question is not clear. Maybe this syntax can useful for you.

if Variablname =-8 then
skip to next;
else
endif;
a.

Re: skip roster row by protected

Posted: December 17th, 2013, 12:41 pm
by Ratha
:) thanks for your response, my question really was not clear enough.
what I want to mean is that skip and PROTECTED. please see my picture below:


thanks

Ratha

Re: skip roster row by protected

Posted: December 17th, 2013, 12:51 pm
by khurshid.arshad
No picture attached.
a.

Re: skip roster row by protected

Posted: December 17th, 2013, 8:24 pm
by Ratha
thanks, but now I found out. please see my below if anyone needed.

onfocus
if Fieldname = '-8' then
set attributes($) protect;
endif;
killfocus
set attributes($) native;

I hop this code is helpful and useful

Thanks,

Ratha

Re: skip roster row by protected

Posted: January 28th, 2014, 3:30 am
by lai
I tested this code. It is not Ok. I want to skip the entire row in roster.
I enter row 1 but I skip row 2 and 3. Again I enter row 4.

Re: skip roster row by protected

Posted: January 28th, 2014, 8:13 pm
by pair
If using this code .. once protected all the data items will be protected with the same name .... so actually it will be hard to protect a data item using the protect function.

PROC RB9C
onfocus
if $ in -8 then
set attributes (RB9D) protected;
set attributes (RC1A) protected;
...
set attributes (RC9B) protected;
skip to next;
endif;

It will be better to write individual codes per data item, like ....

PROC RB9C
onfocus
if $ in -8 then
skip to next;
endif;

PROC RB9D
onfocus
if RB9C in -8 then
skip to next;
endif;

I have not tested this out ... but I hope it works.


... Do the same to all the data items you wish to protect.