StrataFrame Forum

set ParentBusinessObject failed using property sheet

http://forum.strataframe.net/Topic6608.aspx

By Chan - 2/7/2007

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

By StrataFrame Team - 2/7/2007

When you set the ParentBusinessObject property within the property sheet, what code was generated for it within the .designer.cs file?