BO translation and subclassing


Author
Message
dgsoft
dgsoft
StrataFrame User (135 reputation)StrataFrame User (135 reputation)StrataFrame User (135 reputation)StrataFrame User (135 reputation)StrataFrame User (135 reputation)StrataFrame User (135 reputation)StrataFrame User (135 reputation)StrataFrame User (135 reputation)StrataFrame User (135 reputation)
Group: StrataFrame Users
Posts: 93, Visits: 236
Hi, I have an environment

Step1.

[UserControl1 (based on SF userControl)

_|___ UserControl2 (based on SF userControl)

_|_________|____ BO2

_|___BO1



Between BO1 and BO2 I have translation.



Step2.

[Form]

__|___ UserControl1

__|________|___ BO1

__|__BO0



Between BO0 and BO1 I have translation.



This combination works perfect.



Step3.

I create UserControl3 based on UserControl1 !!!

When form starts I'v got an error message now. (below)

It seems in subclassing my BO translation lost. I try to make BO as Public but it does not help.

Any idea?





BusinessLayerException

The business object [BO1] could not be located. It is most likely this object was deleted or renamed.



Source : MicroFour StrataFrame UI



Stack Trace:

bei MicroFour.StrataFrame.UI.Windows.Forms.BusinessObjectTranslator.GetBusinessObject(ContainerControl ParentControl, String BusinessObjectName)

bei MicroFour.StrataFrame.UI.Windows.Forms.BusinessObjectTranslator.TranslateBusinessObjects(BusinessObjectTranslationCollection Translations, ContainerControl SourceContainer, ContainerControl DestinationContainer)

bei MicroFour.StrataFrame.UI.Windows.Forms.UserControl.TranslateBusinessObjects()

bei MicroFour.StrataFrame.UI.Windows.Forms.UserControl.InitializeObject()

bei MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.InitializeFormLoadObjects()

bei MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnLoad(EventArgs e)

bei System.Windows.Forms.Form.OnCreateControl()

bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

bei System.Windows.Forms.Control.CreateControl()

bei System.Windows.Forms.Control.WmShowWindow(Message& m)

bei System.Windows.Forms.Control.WndProc(Message& m)

bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)

bei System.Windows.Forms.ContainerControl.WndProc(Message& m)

bei System.Windows.Forms.Form.WmShowWindow(Message& m)

bei System.Windows.Forms.Form.WndProc(Message& m)

bei System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m)

bei System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)

bei System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
dgsoft - 14 Years Ago
Greg McGuffey - 14 Years Ago
dgsoft - 14 Years Ago
Greg McGuffey - 14 Years Ago
dgsoft - 14 Years Ago
                         Glad you got it going. :D
Greg McGuffey - 14 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search