StrataFrame Forum
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
BO not included in Form save etc puts form dirty on change
http://forum.strataframe.net/Topic28064.aspx
By Charles R Hankey
-
8/23/2010
I have an Ultrawingrid on a tab page bound to a BBS / BO. This BO should not participate in the form's events and it is not related to the primary business object or any of its children. This BO is a child of another BO, also not participating in the form. the parent BO filterschildrecords. I handle navigation of the parent with it's own set of buttons., on the same tab page with the child grid. I don't want this BO to participate in any of the form events - no save, no dirtying the form etc.
I have set IncludeinFormSave = False and SetDirtyOnEdit = False and ManageUIReadOnlystate = false in both BOs
I have set the ignore mangereadonlyState = True for the single textbox bound to the parent bo and the grid bound to the bbs/childbo.
If my form is in idle state the navigation buttons on the standard maintenance form toolbar are active. If I make any change to the childbo grid the navigation buttons dim and the form is in edit mode. What am I missing?
Is there a way to explicitly put the form back into idle state in the isdirtychanged of the childbo?
Suggestions really appreciated.
By Charles R Hankey
-
8/23/2010
Charles, I'm glad you asked that question (and might I say you are looking well today
)
Your problem is that the form has a property IncludeInFormSaveType. It was set to AllBusinessObjects so it was not even looking at the preferences of individual BOs. Once that is set to PrimaryBusinessObject everything works as expected.
By Edhy Rijo
-
8/23/2010
Charles R Hankey (08/23/2010)
Charles, I'm glad you asked that question (and might I say you are looking well today
)
Nice trick Charles!!!
By Greg McGuffey
-
8/23/2010
Who was that masked man?