BO not included in Form save etc puts form dirty on change


Author
Message
Charles R Hankey
Charles R Hankey
Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)
Group: Forum Members
Posts: 524, Visits: 30K
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.

Charles R Hankey
Charles R Hankey
Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)
Group: Forum Members
Posts: 524, Visits: 30K
Charles, I'm glad you asked that question (and might I say you are looking well today BigGrin )



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.



Cool
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Charles R Hankey (08/23/2010)
Charles, I'm glad you asked that question (and might I say you are looking well today BigGrin )


Nice trick Charles!!!

Edhy Rijo

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.3K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Who was that masked man? Wink
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search