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



Problem with Standard form....Expand / Collapse
Author
Message
Posted 10/03/2006 10:03:24 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
I am using a StrataFrame standard form but the form will not be bound to a BO.. But the form insists on assigning one of the BOs I have dropped on the form as the PrimaryBusinessObject and I dont want that... I'll set the PrimaryBusinessObject to (none) and then run the app and It will assign one of the BOs at runtime. Is there anyway to stop this?
Post #3258
Posted 10/03/2006 10:14:42 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 11:24:42 AM
Posts: 2,686, Visits: 1,889
Yes, the business objects will keep attempting to set themselves as the PrimaryBusinessObject of the form.  However, if you don't want the form to interact with any of the business objects, then you can set all of the IncludeInForm*** properties on the form to DeterminedByBusinessObject and set the IncludeInForm*** properties on the business objects to False and you will have the functionality you're looking for.


www.bungie.net
Post #3259
Posted 10/03/2006 10:29:35 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
I did that and it's still not working. Here are a couple screenshots to make sure I did everything right.

The properties of the form


The properties for one of the BOs:
Post #3260
Posted 10/04/2006 8:20:58 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 11:24:42 AM
Posts: 2,686, Visits: 1,889
What functionality are you looking for?  The form is still going to have one of the business objects set as the PrimaryBusinessObject, but it will not interact with any of the business objects because the IncludeInForm options are all diskabled.  If you don't want a business object to be set as the PrimaryBusinessObject, then you will need to set the PrimaryBusinessObject property to Nothing within the Load event of the form.


www.bungie.net
Post #3274
Posted 10/04/2006 9:11:45 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 07/09/2008 2:20:16 PM
Posts: 436, Visits: 944
I was under the impression that if i set those properties it wouldnt assign a BO to the Primary Business Object property of the form.

This is what I wanted though.

Thanks
Post #3279
Posted 10/04/2006 9:58:08 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 11:24:42 AM
Posts: 2,686, Visits: 1,889
Glad that worked


www.bungie.net
Post #3285
« 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 12:12pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 12 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.