StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



SFUserControl BOTranslationExpand / Collapse
Author
Message
Posted 08/18/2006 11:17:16 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 02/04/2008 8:43:02 AM
Posts: 176, Visits: 1,519
When does the BOTranslation take place, at what point in the object creation process?  Is there any error messages if the process doesn't work?  I know that the translation work becuase it is working in one of my controls but in this new control it doesn't seem to be working.  Any idea where I should start looking?
Post #2274
Posted 08/18/2006 11:42:24 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 2 days ago @ 5:02:56 PM
Posts: 2,682, Visits: 1,882
Make sure that the ParentContainer property of the user controls is being set when you drop it on the form... that's where I'd start looking.


www.bungie.net
Post #2277
Posted 08/18/2006 11:50:53 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 02/04/2008 8:43:02 AM
Posts: 176, Visits: 1,519
It is set correctly.
Post #2280
Posted 08/18/2006 1:22:58 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 02/04/2008 8:43:02 AM
Posts: 176, Visits: 1,519
I know it was set correctly the first time I checked it.  Now it appears that it is blank.  How would I go about getting this property set.  I can't set it before InitilizeComponet and when I set it after InitilizeComponet the system just hangs.
Post #2283
Posted 08/18/2006 1:52:39 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 2 days ago @ 5:02:56 PM
Posts: 2,682, Visits: 1,882
It's supposed to get set through the designer.  When you drop the control on the form, it will evaluate the property and set the value to the parent control.

If you need to manually translate the business objects, you can try this:

((MicroFour.StrataFrame.UI.IInitOnFormLoad)this.MyUserControl).InitializeObject();

The translations of the business objects occurs within that method, so you might give it a shot.


www.bungie.net
Post #2284
Posted 08/18/2006 2:16:51 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 02/04/2008 8:43:02 AM
Posts: 176, Visits: 1,519
After about 3 minutes I get:

OutOfMemoryException
 Exception of type 'System.OutOfMemoryException' was thrown.

Source     : mscorlib

Stack Trace:
   at System.Collections.Generic.List`1.set_Capacity(Int32 value)
   at System.Collections.Generic.List`1.EnsureCapacity(Int32 min)
   at System.Collections.Generic.List`1.Add(T item)
   at MicroFour.StrataFrame.Business.BusinessLayer.CopyBoundControlsFrom(BusinessLayer BusinessObject)
   at MicroFour.StrataFrame.UI.Windows.Forms.BusinessObjectTranslator.TranslateBusinessObjects(BusinessObjectTranslationCollection Translations, ContainerControl SourceContainer, ContainerControl DestinationContainer)
   at MicroFour.StrataFrame.UI.Windows.Forms.UserControl.InitializeObject()
   at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.InitializeFormLoadObjects()
   at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

but it did work translate the BO's. Any suggestions?

Post #2287
Posted 08/18/2006 2:20:04 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 2 days ago @ 5:02:56 PM
Posts: 2,682, Visits: 1,882
I'm not sure, Scott.  We have the ability in the next version to share data tables between business objects (for situations just like this, when the translation is a little fuzzy).

Does this control you're using inherit from MicroFour.StrataFrame.UI.Windows.Forms.UserControl, or is it custom and implements the IContainerControl on its own?


www.bungie.net
Post #2288
Posted 08/18/2006 2:23:10 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 02/04/2008 8:43:02 AM
Posts: 176, Visits: 1,519
It inherits from the SF UserControl.  When you say the next version are you meaning 1.5?
Post #2289
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 5:10pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.141. 13 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.