Business objects missing...


Author
Message
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hi Trent.

As you are in the subject, I tried this with xtraReports so to be able to drop a BO in it. I almost made it work. I managed to make the report field pick list be populated with the BO, got happy with this. But then, I get:

The object that the business object has been dropped on must implement

MicroFour.StrataFrame.UI.Windows.Forms.IContainerControl.

I searched here in the forum and saw some talk about this, but at this level it was beyond my knowledge.

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
A BusinessBindingSOurce is a StrataFrame control that allows 3rd party controls, such as grids and reports, talk to a business object as though each row is a new business object.  Without this, some grids will not work properly because when they reference the strong-typed property, it will always return the same row.  Going throug the BusinessBindingSource resolves this issue.
StarkMike
StarkMike
Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)
Group: Forum Members
Posts: 436, Visits: 944
What do you mean about BusinessBindingSource?
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
It might be something to do with that project... before you start taking your solution apart, try creating a sample project and see if it works in there.
StarkMike
StarkMike
Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)
Group: Forum Members
Posts: 436, Visits: 944
Ok i've tried a couple things (one of them being repair Visual Studio) and nothings working. Now I dont have anything in the data sources drop down.



And when I try to add data sources through the Data Source Configuration Wizard and I choose object and then click Next I get this error (also attached).



Error Message: object reference not set to an instance of an object



I have attached a screenshot of my current problem.



Any ideas?
Attachments
nodatasources.jpg (129 views, 191.00 KB)
datasourceconfigwizard.jpg (143 views, 27.00 KB)
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Well, you have to use a BusinessBindingSource to bind a business object as a data source (if you have v 1.4.1 or newer I believe).  Also, the business objects almost always show up under the "Other Data Sources" option in the tree view, so you probably just need to expand that node and they'll be there.
StarkMike
StarkMike
Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)
Group: Forum Members
Posts: 436, Visits: 944
I noticed some strange behavior on a form that I had already created that WAS working fine Tongue and then when I went to run it yesterday its not working properly. The one thing I noticed was that the Business objects that I had created on this form (or any form after i had done a little investigation) weren't showing up in the datasources property anymore. The screen shot below will illustrate that.



Any ideas why this is happening?




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