ELPAR in Rule
Posted: Wed Feb 21, 2024 4:38 pm
Hi,
I am creating some security rule which says if the parent is 'WRITE' then make the child 'WRITE' too.
I am using the following:
The parent security rule is as follows:
So if the Business Partner attribute of Cost Centre Parent "North" = the Group, then give group WRITE access to all cost centres under "North".
I don't like the idea of using ELPAR but I couldn't think of an alternative without doing something with the Business Partner Attribute.
Does anyone have any other suggestions?
Maren
I am creating some security rule which says if the parent is 'WRITE' then make the child 'WRITE' too.
I am using the following:
Code: Select all
[]=S:
IF( ELLEV('Cost Centre', !Cost Centre) = 0 & DB('}ElementSecurity_Cost Centre', ELPAR('Cost Centre', !Cost Centre,1),!}Groups) @= 'WRITE',
'WRITE', 'NONE');
Code: Select all
[]=S:
IF( 'grp_' | ATTRS( 'Cost Centre', !Cost Centre,'Business Partner' ) @= !}Groups,
'WRITE', CONTINUE);
I don't like the idea of using ELPAR but I couldn't think of an alternative without doing something with the Business Partner Attribute.
Does anyone have any other suggestions?
Maren