Manually setting relations


Author
Message
Paul Chase
Paul Chase
Advanced StrataFrame User (594 reputation)Advanced StrataFrame User (594 reputation)Advanced StrataFrame User (594 reputation)Advanced StrataFrame User (594 reputation)Advanced StrataFrame User (594 reputation)Advanced StrataFrame User (594 reputation)Advanced StrataFrame User (594 reputation)Advanced StrataFrame User (594 reputation)Advanced StrataFrame User (594 reputation)
Group: Forum Members
Posts: 414, Visits: 2.8K
I am trying to manually set a relation in the Form's load event as follows but it doesnt seem to work. Any ideas on what I am missing or is this the wrong approach?

Me.BoAddress1.ParentBusinessObject = Me.BoEmployee1

Dim loRelation As New MicroFour.StrataFrame.Business.BusinessParentRelationship

loRelation.ForeignKeyField() = New String() {"Adr_FK_ID"}

loRelation.ParentPrimaryKeyField() = New String() {"EMP_PK"}

loRelation.ParentBusinessObjectType = "PayrollBO.BOEmployee"

'Set the Relationship

Me.BoContacts1.ParentRelationship = loRelation


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search