StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
BOTranslation from component to childForm
BOTranslation from component to childForm
Post Reply
Like
0
BOTranslation from component to childForm
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Trent Taylor
Trent Taylor
posted 17 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
You have three options, first, just pass the craeted BO over as a parameter to the child form. Second, manually add the item to the translation collection.
'-- Decalre this as a private on Form1
Private _MyBO As MySourceBO
'-- Manually add the translation
Dim loItem As New MicroFour.StrataFrame.UI.Windows.Forms.BusinessObjectTranslationItem()
loItem.SourceBusinessObject = "Form1._MyBO"
loItem.DestinationBusinessObject = "Form2._DestBO"
Me.ChildFormDialog1.BusinessObjectTranslations.Add(loItem)
Last option, manually translate the BOs yourself by calling the translater directly.
MicroFour.StrataFrame.UI.Windows.Forms.BusinessObjectTranslator.TranslateBusinessObjects(SourceBO,DestBO,"DestBOInstanceName",Form1,Form2)
Reply
Like
0
Chan
Chan
posted 17 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 533,
Visits: 2K
Hi,
In my lookedit_ButtonClicked event, I need to launch childform. My BO is created in this event, but
not
dropped on form.
How could I "translate" my BO to childform?
Thank you
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search