Imagine this scenario....
I have a Parent BO that Owns Many Child BOs
In the Child BO, I have a Yes/No Attribute (as a Switch)... Lets call it recordEnabled.
Assume there are any number of Child records for a given Parent. But ONE AND ONLY ONE Child Record is allowed to have recordEnabled set to Yes.. or Enabled.
If one single record has recordEnabled Enabled, then recordEnabled for all the other Child records of this Parent should be visible but uneditable... PROTECT.
The ONLY Record that can have recordEnabled UNPROTECTED is the record where it is set to Yes or Enabled. For this record it can be then set to No or Disabled.
If ALL records have recordEnabled set to No or Disabled then recordEnabled is UNPROTECTED for all record until one of them is set to Enabled.
I have frigged around with the BO Rule to properly and dynamically PROTECT this attribute appropriately for hours to no avail.
Would appreciate any ideas or suggestions please.