Hi,
anyone know how to skip roster row by protected when enter (e.g. -8)
thanks
Ratha
skip roster row by protected
-
khurshid.arshad
- Posts: 618
- Joined: July 9th, 2012, 11:32 am
- Location: Islamabad, Pakistan
Re: skip roster row by protected
Dear Ratha
Your question is not clear. Maybe this syntax can useful for you.
if Variablname =-8 then
skip to next;
else
endif;
a.
Your question is not clear. Maybe this syntax can useful for you.
if Variablname =-8 then
skip to next;
else
endif;
a.
-
Ratha
- Posts: 3
- Joined: December 16th, 2013, 9:04 pm
Re: skip roster row by protected
what I want to mean is that skip and PROTECTED. please see my picture below:
thanks
Ratha
You do not have the required permissions to view the files attached to this post.
Last edited by Ratha on December 17th, 2013, 12:58 pm, edited 2 times in total.
-
khurshid.arshad
- Posts: 618
- Joined: July 9th, 2012, 11:32 am
- Location: Islamabad, Pakistan
Re: skip roster row by protected
No picture attached.
a.
a.
-
Ratha
- Posts: 3
- Joined: December 16th, 2013, 9:04 pm
Re: skip roster row by protected
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
onfocus
if Fieldname = '-8' then
set attributes($) protect;
endif;
killfocus
set attributes($) native;
I hop this code is helpful and useful
Thanks,
Ratha
-
lai
- Posts: 1
- Joined: January 28th, 2014, 3:15 am
Re: skip roster row by protected
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.
I enter row 1 but I skip row 2 and 3. Again I enter row 4.
You do not have the required permissions to view the files attached to this post.
-
pair
Re: skip roster row by protected
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.
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.