A couple of new learnings about dynamic rules & visibility:
1- Dynamic rules that have READ PROTECT actions should be in a rule that has no other actions other than READ PROTECT actions.
For example, this works:
If LoggedInRegularUser.ReportsCountry.Country<>'ALL' Then
READ PROTECT LoggedInRegularUser.Reports201 FROM ALL
READ PROTECT LoggedInRegularUser.Reports211 FROM ALL
This does not work:
If LoggedInRegularUser.ReportsCountry.Country<>'ALL' Then
Another non-READ PROTECT action goes here
READ PROTECT LoggedInRegularUser.Reports201 FROM ALL
READ PROTECT LoggedInRegularUser.Reports211 FROM ALL
Another non-READ PROTECT action goes here
2- To trigger dynamic READ PROTECT rules in a BO Attribute that has a PEER relationship to a BO presented as a drop-down:
a- you have to "look through" -- to the referenced attribute -- see bold below:
If LoggedInRegularUser.ReportsCountry.Country<>'ALL' Then
READ PROTECT LoggedInRegularUser.Reports201 FROM ALL
READ PROTECT LoggedInRegularUser.Reports211 FROM ALL
b- the associated "trigger" rule is as follows:
If LoggedInRegularUser.ReportsCountry WAS CHANGED Then
LoggedInRegularUser.AnyAttribute=LoggedInRegularUser.AnyAttribute
This may seen like common sense to some, but it took me a while to get it all to work together.
Tom