StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Problem setting parent business objectExpand / Collapse
Author
Message
Posted 08/30/2006 3:16:04 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 5:16:01 PM
Posts: 314, Visits: 1,290
I created a class library with two business objects (OrderHeader and OrderDetail) so I can reuse in multiple projects.  I set the ParentRelationship field on the OrderDetail business object and built the project.

My Winform application references the business object library and I have dragged the two business object components onto the form. Now I trying to set the ParentBusinessObject property on the OrderDetail business object and I receive a message 'A parent relationship must first be setup before a parent business object can be selected.' 

Am I missing something?

Post #2557
Posted 08/30/2006 6:09:22 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 12/09/2008 3:36:08 PM
Posts: 2,686, Visits: 1,891
No, you're probably not missing anything other than Visual Studio might be hanging on to an old assembly reference.  If you build your solution and then restart Visual Studio and you're still getting that message, make sure you didn't put the "parent" relationship on the wrong business object.


www.bungie.net
Post #2560
Posted 08/30/2006 9:05:17 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 5:16:01 PM
Posts: 314, Visits: 1,290
Sorry, my mistake.  When I created the business object library, I used the standard vb.net class library template instead of the StrataFrame Business Object Library template.  I recreated and it works fine now.
Post #2569
Posted 08/31/2006 12:21:35 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 12/09/2008 3:36:08 PM
Posts: 2,686, Visits: 1,891
Ah, yes, there is a difference between the templates in the assemblies that are referenced by default.  I'm glad you got it working


www.bungie.net
Post #2570
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 5:48pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.109. 11 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.