I have made a parent BO and a child BO which both have a yes/no attribute called ‘Plan Slot’. I’m trying to make it so that If the user changes the Plan Slot value in the parent BO, it updates all instances of the child BO to the same value.
I’ve tried using the below but had no luck. Can anyone tell me where I’m going wrong?
You could use a shortcut in this scenario.
If the attribute in the child BO should always reflect the value in the parent BO, a shortcut would be a more convenient solution.
If you cant use a shortcut for some reason, here is another answer to your question:
If OverhaulSlots_ParentDB.PlanSlots WAS CHANGED Then
FIND OverhaulSlots_ChildDB WHERE (OverhaulSlots_ChildDB.OverhaulSlots_ParentDB=OverhaulSlots_ParentDB)
OverhaulSlots_ChildDB.PlanSlot=OverhaulSlots_ParentDB.PlanSlots
If OverhaulSlots_ParentDB.PlanSlots WAS CHANGED Then
FIND OverhaulSlots_ChildDB WHERE (OverhaulSlots_ChildDB.OverhaulSlots_ParentDB=OverhaulSlots_ParentDB)
OverhaulSlots_ChildDB.PlanSlot=OverhaulSlots_ParentDB.PlanSlots
From memory FIND is not an available function for Business Rules, only Processes but you can use a BR to call a Process. The logic of this restriction is not clear