set attributes protect lock the next field in roster
Posted: July 1st, 2015, 3:29 am
Hi,
I am trying to use code to control everything rather than to change 'field property'. And I found this strange thing happened. And may I ask if there is any command can be used to control the number of roster rows rather than filling in a field name into the 'Occurence control field' in roster property?
In my roster, HR01 is the sequential roster ID, Name is the next field for name. If I choose ‘sequentical’ and ‘protected’ in the field roster, then it works. But if I use the following command, then field ‘NAME’ cannot be entered. It is the ‘set attributes ($) protect’ make that problem.
PROC HR01
preproc
{Fill in sequencial number}
$ = Curocc();
{Field is protected}
set attributes ($) protect; // should change to protect in the field property, all the next field cannto be entered.
I am not sure if this is a small bug or did I do anything wrong?
best
Jing
I am trying to use code to control everything rather than to change 'field property'. And I found this strange thing happened. And may I ask if there is any command can be used to control the number of roster rows rather than filling in a field name into the 'Occurence control field' in roster property?
In my roster, HR01 is the sequential roster ID, Name is the next field for name. If I choose ‘sequentical’ and ‘protected’ in the field roster, then it works. But if I use the following command, then field ‘NAME’ cannot be entered. It is the ‘set attributes ($) protect’ make that problem.
PROC HR01
preproc
{Fill in sequencial number}
$ = Curocc();
{Field is protected}
set attributes ($) protect; // should change to protect in the field property, all the next field cannto be entered.
I am not sure if this is a small bug or did I do anything wrong?
best
Jing