set ParentBusinessObject failed using property sheet


Author
Message
StrataFrame Team
S
StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
When you set the ParentBusinessObject property within the property sheet, what code was generated for it within the .designer.cs file?
Chan
Chan
Advanced StrataFrame User (725 reputation)Advanced StrataFrame User (725 reputation)Advanced StrataFrame User (725 reputation)Advanced StrataFrame User (725 reputation)Advanced StrataFrame User (725 reputation)Advanced StrataFrame User (725 reputation)Advanced StrataFrame User (725 reputation)Advanced StrataFrame User (725 reputation)Advanced StrataFrame User (725 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

I set my childform.myBO.ParentBusinessObject = childform.MasterBO using property sheet. However, it doesn't work. It hit error when save child record, complaint FK is not exist. It is same even though MasterBO.ChildAutoFilterOption has been set to MatchCurrentRow/None.

During debugging, I found that _ParentBusinessObject is nothing. I can see auto generated code in InitializeComponent() for this setting.

My current worksaround is set ParentBusinessObject in form_load programmatically.

Any ideas?

Thank you

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