Listview Problem


Author
Message
Michael Reese
Michael Reese
StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)
Group: StrataFrame Users
Posts: 235, Visits: 1.6K
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)

Michael Reese
Michael Reese
StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)
Group: StrataFrame Users
Posts: 235, Visits: 1.6K
Disregard again. I forgot to code the ListPopulating event with parameters.

Michael

StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Glad you got it working...
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search