Business objects missing...


Author
Message
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?




Replies
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
Ivan,

The reason you got this message is because the form you dropped the business object on is not inherited from MicroFour.StrataFrame.UI.Windows.BaseForm or MicroFour.StrataFrame.UI.Windows.UserControl.  The BaseForm is the root of all StrataFrame forms.  Both the BaseForm and UserControl have an interface called IContainerControl that has methods and properties that allow a parent container control, such as a form or user control, to have business objects dropped on them and then to know exactly how to manage those instances (Form Saves, Undos, etc.).

Bottom line, to resolve your error, just base your form off of something like:

MicroFour.StrataFrame.UI.Windows.Forms.StandardForm

Hope this makes sense Smile

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
I dropped it in an xtraReports layout, in the report designer.

It was only a test, anyway. I don't think this is going to be the best practice to build reports. I have a feeling that the temp BO I heard from you in another thread will do it better. I'm now wondering where I will put the code to populate this "cursor", and them, how to bind these fields into xtraReports controls.

Fun, fun, fun ...

 

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
StarkMike - 19 Years Ago
StrataFrame Team - 19 Years Ago
StarkMike - 19 Years Ago
StrataFrame Team - 19 Years Ago
StarkMike - 19 Years Ago
Trent L. Taylor - 19 Years Ago
Ivan George Borges - 19 Years Ago
Trent L. Taylor - 19 Years Ago
                         I dropped it in an xtraReports layout, in the report designer. It was...
Ivan George Borges - 19 Years Ago
StarkMike - 19 Years Ago
StarkMike - 19 Years Ago
Trent L. Taylor - 19 Years Ago
StarkMike - 19 Years Ago
StrataFrame Team - 19 Years Ago
StarkMike - 19 Years Ago
StarkMike - 19 Years Ago
StrataFrame Team - 19 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search