StrataFrame Forum

Listview Problem

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

By Michael Reese - 2/21/2007

I have a listview that is has got me stumped. I am passing a valid parameter value to the business object. However, I get an error. THe business object is populating with data. When I set the BO to FillAll on formload it works.

The following code is called from a grid click.

Me.BoSubAssignTo.FillByParentPrimaryKey(BoSubjMain.ID)

lvAssignedTo.Requery()

Error

*******************************************************************

Dynamically populating the ListView failed.  Could not create and fill the business object of type 'ORION_BO.BODefAssignedResources'

***************************************************************

MicroFour.StrataFrame.UI.UIException was unhandled by user code
  Message="Dynamically populating the ListView failed.  Could not create and fill the business object of type 'ORION_BO.BODefAssignedResources'"
  Source="MicroFour StrataFrame UI"
  StackTrace:
       at MicroFour.StrataFrame.UI.Windows.Forms.ListView.GetFilledBusinessObject(Object[] Parameters)
       at MicroFour.StrataFrame.UI.Windows.Forms.ListView.PopulateListView(Object[] Parameters)
       at MicroFour.StrataFrame.UI.Windows.Forms.ListView.Requery()
       at OrionApp.MainForm.grdVSubjects_Click(Object sender, EventArgs e) in C:\DevelopmentApps\Orion\OrionApp\WorkForms\MainMenu\MainForm.vb:line 2253
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at Infragistics.Win.UltraControlBase.OnClick(EventArgs e)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.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)

By Michael Reese - 2/21/2007

Disregard again. I forgot to code the ListPopulating event with parameters.

Michael

By StrataFrame Team - 2/22/2007

Glad you got it working...