PROTECT & READ PROTECT rules executing during initialisation and every re-calculation. Dynamic or Not.
Version tested:
5.8, 5.9
Description:
I use PROTECT & READ PROTECT rules extensively in my application. They are extremely important and I feel they should be treated the same way the system treats the REPORT ERROR action rule.
REPORT ERROR
The result that was expected:
If not dynamic, REPORT ERROR is prevented from executing on re-calculation.
Executes after you click save.
Log: Rule is prevented from executing during initialisation.
If dynamic, REPORT ERROR is executes on re-calculation if triggered.
The result that occurs instead:
None. Works as expected.
PROTECT
The result that was expected:
Same as REPORT ERROR
If Non-Dynamic,
PROTECT rule is prevented from executing on re-calculation.
Executes after you click save.
The attributes or the BO are not protected while the user is still working on the entry from.
Rule is prevented from executing during initialisation.
If Dynamic,
PROTECT rule is executed on re-calculation.
Executes immediately and the attributes defined in the rule are protected, preventing the user from editing them.
If PROTECT BO (not individual attributes), the whole BO is protected.
The result that occurs instead:
If Non-Dynamic, depending what is protected,
The rule is executed and the attributes are PROTECTED preventing the user from editing.
The rule is executed and the whole BO is protected from editing
None. Works as expected.
READ PROTECT
Execution same as "PROTECT"
The result that was expected:
If Non-Dynamic,
READ PROTECT rule is prevented from executing on re-calculation.
Executes after you click save.
The attributes are not read protected (hidden) while the user is still working on the entry from.
Rule is prevented from executing during initialisation.
If Dynamic,
READ PROTECT rule is executed on re-calculation.
Executes immediately and the attributes are read protected, hidden from the form.
The result that occurs instead:
If Non-Dynamic,
The rule is executed and the attributes are READ PROTECTED and hidden from the user.
None. Works as expected.
Testing:
BSV available.
Debugging already done:
- PROTECT & READ PROTECT rules > advanced options > "Do not use rule during initialisation" selected
- PROTECT & READ PROTECT rules re-calculation option checkbox left unticked
- REPORT ERROR rule tested with and without dynamic checkbox ticked.
- PROTECT BO FROM ALL EXCEPT SYSTEM
- PROTECT BO.Attribute FROM ALL EXCEPT SYSTEM
- READ PROTECT BO.Attribute FROM ALL EXCEPT SYSTEM
Possible fix:
Have the READ PROTECT & PROTECT Rules work similarly to REPORT ERROR rules.
Cheers