By StarkMike - 10/3/2006
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?
|
By StrataFrame Team - 10/3/2006
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.
|
By StarkMike - 10/3/2006
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:
|
By StrataFrame Team - 10/4/2006
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.
|
By StarkMike - 10/4/2006
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
|
By StrataFrame Team - 10/4/2006
Glad that worked
|