How could I access childbusinessobject from parentbusinessobject? I checked SF source code and found that is a private variable _ChildBusinessObjects. However it is not exposed. Any other way to access it?
Thank you
May I know the property name?
I think that would be simply:
me.ParentBusinessObject....
Cheers, Peter
If Me.ParentBusinessObject.InstrumentName = "Atlas" Then ' <- Compile time error due to ParentBusinessObject doesn't exist at design time If Not CheckOnePortActive(Me.CurrentRowIndex) then Me.AddBrokenRule(PortSetupBoFieldNames.Activate,"Only one port can be active for this instrument.") End IfEnd If
Dim oParentBiz As InstrumentSetupBO oParentBiz = CType(Me.ParentBusinessObject, InstrumentSetupBO) If oParentBiz.InstrumentName = "Atlas" Then If Not CheckOnePortActive(Me.CurrentRowIndex) Then Me.AddBrokenRule(PortSetupBOFieldNames.Activate, "Can only have 1 active port on Atlas.") End If End If