StrataFrame Forum

Populating Business Object

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

By Ger Cannoll - 5/25/2008

I am following the Getting Started manual but have come to a halt. Am uisng C# rather than VB if that makes a difference. I am at the point where I want to call the FillMyTable from the ParentLoading Event (I have set this method up in the Business Object)

I right click on View Code for the Form, and on the Left hand drop down I can only see Form1 (with all the Code) and on the RHS I can see all the Objects on the form)

Cant get up the ParentFormLoading event.....

By Edhy Rijo - 5/25/2008

Hi Gerard,

Make sure of the following:

  • That your form is based on the StrataFrame Maintenance Form.
  • That you added your Business Object to the Form.
  • Select the Business Object then in the Property View, in the Events, double click the ParentFormLoading event so it will be added to the form's code view for you.
  • Then add the call to your BO.Fill method you created.

I hope I understood your problem. Smile

By Trent L. Taylor - 5/26/2008

All of Edhy's suggestions are good ones.  It sounds like you may not have created an SF application and/or SF form.  That would be the first place to look.  Ensure that your form inherits from the MicroFour.StrataFrame.UI.Windows.Forms.StandardForm and then try again.  Even though the ParentFormLoading event is on the BO, it does work in conjunction with the SF BaseForm (which StandardForm inherits).